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