Created
March 25, 2014 14:47
-
-
Save patrickmj/9763320 to your computer and use it in GitHub Desktop.
Simple Om eka plugin to deny contributor permissions
This file contains 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 | |
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