[英]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.