Skip to content

Commit 3e20fc0

Browse files
committed
modified permissions for exhibits site needs
1 parent f66aa6b commit 3e20fc0

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

functions.php

+7-6
Original file line numberDiff line numberDiff line change
@@ -315,12 +315,13 @@ function exhibit_builder_define_acl($args)
315315
$acl->allow(null, 'ExhibitBuilder_Exhibits',
316316
array('show', 'summary', 'show-item', 'browse', 'tags'));
317317

318-
// Allow contributors everything but editAll and deleteAll.
319-
$acl->allow('contributor', 'ExhibitBuilder_Exhibits', array(
320-
'add', 'add-page', 'delete-confirm', 'edit-page',
321-
'attachment', 'attachment-item-options', 'theme-config',
322-
'editSelf', 'deleteSelf', 'showSelfNotPublic', 'block-form'));
323-
318+
// Allow contributors everything EXCEPT DELETE on exhibit
319+
$acl->allow('contributor', 'ExhibitBuilder_Exhibits',array('add', 'add-page','edit-page','attachment', 'attachment-item-options','theme-config','editSelf','showNotPublic','showSelfNotPublic','block-form','edit','editAll'));
320+
// $acl->allow('contributor', 'ExhibitBuilder_Exhibits');
321+
//Allow contributors everything on items
322+
$acl->allow('contributor', 'Items');
323+
//Allow contributors everything on items
324+
$acl->allow('contributor', 'Collections');
324325
$acl->allow(null, 'ExhibitBuilder_Exhibits', array('edit', 'delete'),
325326
new Omeka_Acl_Assert_Ownership);
326327
}

0 commit comments

Comments
 (0)