• Is there a recommended plugin or some other way to manage role permissions for sub sites in multi-site? I would like to give some users a higher than editor role but not quite administrator ! for example I need them to be able to see plugins and maybe widgets but not play around with other stuff?

Viewing 4 replies - 1 through 4 (of 4 total)
  • None that work on a global basis, just on a blog by blog basis.

    https://www.ads-software.com/extend/plugins/user-role-editor/

    A plugin so a user can see plugins will result in the user seeing the plugin that controls his/her role. Therefore, an out-of-the-box fancy-schmancy WP roles/caps plugin won’t do unless you alter it so that it(and it’s admin menu) is visible only to the SuperAdmin.

    Here’s an example you could drop in “mu-plugins” to add one or two capabilities to an existing role:
    https://www.ads-software.com/support/topic/edit-user-roles

    You could add conditions for the blog_id or current user id

    <?php
    global $blog_id, $current_user;
    if( $blog_id == '66' ) {
    	//add caps to editor role on blog 66 only
    	}
    //or
    if( $current_user->id == '63' ) {
    	//add caps to editor role for user 63 on every blog
    	 }
    //or
    if( $blog_id == '66' && $current_user->id == '63' ) {
    	//add caps to editor role for user 63 on blog 63 only
    	 }
    ?>

    Thread Starter elastigirl

    (@elastigirl)

    Thanks guys I’ll have a look at those, I probably didn’t explain myself properly though, I don’t need it on a “site by site” basis. Basically each subsite will have just one user who will be an editor, which is where I want slightly different privilages than the standard editor.

    I’m usually just a try it and see type of person but not being familiar with multi-site I’m afraid of breaking it ?? I was looking at adminitize in conjunction with some role plugin.. do you think that might be suitable for multisite?

    tks

    Thread Starter elastigirl

    (@elastigirl)

    Just looked at the one you recommended Andrea.. looks like that will do the trick ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Role permissions query – multi-site’ is closed to new replies.