In our project we have the need to change some of the permissions for the contributor role.
When it comes to items, contributors should be able to set items created by themselves as public.
Also, contributors should not be allowed to make their own exhibits public. This is instead handled by an administrator.
I've made a plugin that requires the ExhibitBuilder plugin to make sure its called after the EB-plugin.
I've also modified the ACL for Items in this plugin to allow contributors to make their items public:
$acl->allow('contributor', 'Items', array('showSelf','showSelfNotPublic', 'makePublic'));
The above is working as intended.
However, I'm not able to deny contributors the ability to set an exhibit as public. I'm using the following line:
$acl->deny('contributor', 'ExhibitBuilder_Exhibits', array('makeFeatured','makePublic','theme-config'));
It seems to be working for the 'theme-config' parameter since I get an error when trying to modify the theme. But the "make public" and "make featured" checkboxes still appear.
Is there anything I'm missing here?