Remove phone numbers from org permissions (not in this branch)
This commit is contained in:
@@ -171,26 +171,26 @@ class OrganisationPermissions extends BaseSeed
|
||||
'update_org_user_field' => new Permission([
|
||||
'slug' => 'update_user_field',
|
||||
'name' => 'Edit organisation member',
|
||||
'conditions' => "subset(fields,['roles','phone_number','organisations'])",
|
||||
'conditions' => "subset(fields,['roles','organisations'])",
|
||||
'description' => 'Edit users who are in any organisation.',
|
||||
]),
|
||||
'view_org_user_field' => new Permission([
|
||||
'slug' => 'view_user_field',
|
||||
'name' => 'View organisation member',
|
||||
'conditions' => "in(property,['roles','phone_number','organisations'])",
|
||||
'conditions' => "in(property,['roles','organisations'])",
|
||||
'description' => 'View certain properties of any user in any organisation.',
|
||||
]),
|
||||
|
||||
'update_org_user_field_own' => new Permission([
|
||||
'slug' => 'update_user_field',
|
||||
'name' => 'Edit organisation member',
|
||||
'conditions' => "can_admin_via_orgs(self.id, user.id) && subset(fields,['name','email','locale','password','phone_number'])",
|
||||
'conditions' => "can_admin_via_orgs(self.id, user.id) && subset(fields,['name','email','locale','password'])",
|
||||
'description' => 'Edit users who are in an organisation they are a member of.',
|
||||
]),
|
||||
'view_org_user_field_own' => new Permission([
|
||||
'slug' => 'view_user_field',
|
||||
'name' => 'View organisation member',
|
||||
'conditions' => "similar_orgs(self.id, user.id) && in(property,['user_name','name','locale','email','phone_number','organisations','activities'])",
|
||||
'conditions' => "similar_orgs(self.id, user.id) && in(property,['user_name','name','locale','email','organisations','activities'])",
|
||||
'description' => 'View certain properties of any user in their organisation.',
|
||||
]),
|
||||
|
||||
|
||||
Reference in New Issue
Block a user