Updated viewable and editable organisation fields

This commit is contained in:
2022-02-08 09:47:43 +00:00
parent 9345bed087
commit 8b2089fede
2 changed files with 3 additions and 3 deletions

View File

@@ -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';
}

View File

@@ -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([