[英]Role assignment, management, and permissions in Parse (Parse.com)
Parse中的 角色使用ACL进行权限。
为了在注册表时向用户添加角色,我的理解是该角色需要读取和写入。 我担心的是,公众可以访问它意味着任何人都可以从该角色中删除用户。
这是真的,如果是这样,我怎么能绕过这个? 关于角色分配和管理的一些可靠实例将非常有用。
对于寻找解决方案的人来说,Parse网站上已经解决了这个问题:
角色不需要是公共可写的。 如果要在注册时自动为用户分配角色,可以在Cloud Code中添加使用主密钥修改角色的afterSave处理程序。 afterSave: https ://www.parse.com/docs/cloud_code_guide#save useMasterKey: https ://parse.com/docs/cloud_code/symbols/Parse.Cloud.html#.useMasterKey
角色不需要是公共可写的。 如果要在注册时自动为用户分配角色,可以在Cloud Code中添加使用主密钥修改角色的afterSave处理程序。
afterSave
afterSave: https ://www.parse.com/docs/cloud_code_guide#save
useMasterKey: https ://parse.com/docs/cloud_code/symbols/Parse.Cloud.html#.useMasterKey
https://www.parse.com/questions/role-assignment-management-and-permissions#answer-the-role-does-not-need-to-be-public-writable-if-you
[英]Destructuring assignment in Parse.com CloudCode
[英]Parse.com set User Role
[英]Parse.com security Role not saving
[英]Parse.com: Signup user to role
[英]Parse.com and closures
[英]Parse.com - cannot add specific user to role
[英]Parse.com : Fetch all users with no role assigned
[英]Parse.com OR query
[英]Unable to create role on Parse.com using CloudCode
[英]Parse.com CloudCode add user to existing role not working
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.