Permissions access

*爱你&永不变心* 提交于 2021-01-28 07:27:46

问题


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.


回答1:


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.

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.


来源:https://stackoverflow.com/questions/11240253/permissions-access

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!