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';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user