Skip to content

Commit

Permalink
Allow supervisor to import/self-edit/remove vocabs
Browse files Browse the repository at this point in the history
(fix #1857)
  • Loading branch information
zerocrates committed Jul 7, 2022
1 parent b59e6dd commit a5f5142
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions application/src/Service/AclFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -797,19 +797,15 @@ protected function addRulesForSiteAdmin(Acl $acl)
['Omeka\Module\Manager', 'Omeka\Controller\Admin\Module'],
['activate', 'deactivate', 'install', 'uninstall', 'upgrade', 'configure']
);
$acl->deny(
'site_admin',
'Omeka\Controller\Admin\Vocabulary',
['import']
);
$acl->deny(
'site_admin',
'Omeka\Controller\Admin\Setting'
);
$acl->deny(
'site_admin',
'Omeka\Api\Adapter\VocabularyAdapter',
['create', 'update', 'delete']
'Omeka\Entity\Vocabulary',
['update', 'delete'],
new AssertionNegation(new OwnsEntityAssertion)
);

$acl->deny(
Expand Down

0 comments on commit a5f5142

Please sign in to comment.