Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
新版本 2 API 引入了访问权限的方法。应用程序可以创建、删除、修改和读取一个权限,但为什么 get 方法不返回值属性,这限制了应用程序可以对权限执行的操作?JavaScript 可嵌入共享组件是一些用例的解决方案,但不是全部。
为了保护隐私,省略了 value 属性。可以读取文件权限的用户应该无法查看所有其他具有权限的用户的电子邮件地址。
您应该使用权限 id,它可以通过about方法作为about 资源找到,并且是:
The current user's ID as visible in the permissions collection.