Created
June 14, 2012 18:24
-
-
Save jeremyboggs/2931950 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Define the ACL | |
*/ | |
public function defineAcl($acl) | |
{ | |
if (version_compare(OMEKA_VERSION, '2.0-dev', '>=')) { | |
$acl->addResource('Neatline_Exhibits'); | |
} else { | |
$acl->loadResourceList( | |
array('Neatline_Exhibits' => array( | |
'add', | |
'browse', | |
'edit', | |
'query', | |
'delete', | |
'show', | |
'showNotPublic', | |
'items', | |
'index', | |
'form', | |
'save', | |
'status', | |
'order', | |
'positions', | |
'arrangement', | |
'focus', | |
'mapsettings', | |
'timelinesettings', | |
'resetstyles', | |
'dcdefault' | |
)) | |
); | |
} | |
// All everyone access to browse, show, and items. | |
$acl->allow(null, 'Neatline_Exhibits', array('show', 'browse', 'udi', 'simile', 'openlayers')); | |
$acl->allow(array('super', 'admin'), 'Neatline_Exhibits'); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment