Skip to content

Commit 9bd6727

Browse files
committed
Add permissions tot the UserAdapter/API as well.
The button on the user browse page is available based on the UserAdapter, not the entity.
1 parent 72fb370 commit 9bd6727

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Module.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,11 @@ protected function addAclRules()
254254
['create', 'delete', 'change-password', 'edit-keys']
255255
);
256256

257+
$acl->deny(
258+
'site_admin',
259+
'Omeka\Api\Adapter\UserAdapter',
260+
['create', 'delete']
261+
);
257262
}
258263

259264
$acl->allow(

0 commit comments

Comments
 (0)