Updated viewable and editable organisation fields
This commit is contained in:
@@ -797,7 +797,7 @@ class OrganisationController extends SimpleController
|
||||
}
|
||||
|
||||
// Determine fields that currentUser is authorized to view
|
||||
$fieldNames = ['name', 'slug', 'description'];
|
||||
$fieldNames = ['name', 'slug', 'description', 'members'];
|
||||
|
||||
// Generate form
|
||||
$fields = [
|
||||
@@ -820,7 +820,7 @@ class OrganisationController extends SimpleController
|
||||
|
||||
if (!$authorizer->checkAccess($currentUser, 'update_organisation_field', [
|
||||
'organisation' => $organisation,
|
||||
'fields' => ['name', 'slug', 'description'],
|
||||
'fields' => ['name', 'slug', 'description', 'members'],
|
||||
])) {
|
||||
$editButtons['hidden'][] = 'edit';
|
||||
}
|
||||
|
||||
@@ -53,7 +53,7 @@ class OrganisationPermissions extends BaseSeed
|
||||
'view_organisation_field' => new Permission([
|
||||
'slug' => 'view_organisation_field',
|
||||
'name' => 'View organisation',
|
||||
'conditions' => "in(property,['name','slug','description','members','admins'])",
|
||||
'conditions' => "in(property,['name','slug','description','members'])",
|
||||
'description' => 'View certain properties of any organisation.',
|
||||
]),
|
||||
'update_organisation_field' => new Permission([
|
||||
|
||||
Reference in New Issue
Block a user