Skip to content

Instantly share code, notes, and snippets.

@jeremyboggs
Created June 14, 2012 18:24
Show Gist options
  • Save jeremyboggs/2931950 to your computer and use it in GitHub Desktop.
Save jeremyboggs/2931950 to your computer and use it in GitHub Desktop.
<?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