Skip to content

Instantly share code, notes, and snippets.

@patrickmj
Created March 25, 2014 14:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save patrickmj/9763320 to your computer and use it in GitHub Desktop.
Save patrickmj/9763320 to your computer and use it in GitHub Desktop.
Simple Om eka plugin to deny contributor permissions
<?php
add_plugin_hook('define_acl', 'deny_contributors_define_acl');
function deny_contributors_define_acl($args)
{
$acl = $args['acl'];
$acl->deny('contributor','Collections', array('add', 'delete-confirm', 'editSelf',
'deleteSelf', 'showSelfNotPublic'));
}
/*
* Put this file into a directory in the /plugins directory. You can call that new plugin directory anything you want
* Then activate the new plugin, and the contributors won't have access to creating Collections
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment