权限访问 [英] Permissions access

查看:53
本文介绍了权限访问的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

新的版本2 API引入了访问权限的方法.应用程序可以创建,删除,修改和读取一个权限,但是为什么get方法不返回value属性,该属性限制了应用程序可以使用权限做什么?JavaScript可嵌入的共享组件是针对某些用例的解决方案,但并非针对所有用例.

The new version 2 API introduce methods to access permissions. Apps can create, delete, modify and read one permission but why the get method does't return the value property which limits what apps can do with permissions ? The JavaScript embeddable sharing component is a solution for some use cases but not for all.

推荐答案

为保护隐私,省略了value属性.可以读取文件权限的用户应该看不到所有其他具有权限的用户的电子邮件地址.

The value property is omitted in order to preserve privacy. A user that can read the permissions on a file should not be able to see the email addresses of all the other users with permissions.

您应该使用权限ID,该ID可在关于方法作为关于资源,并且是:

You should use the permission id, which can be found with the about method as the about resource, and is:

The current user's ID as visible in the permissions collection.

这篇关于权限访问的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆