Skip to:
Content
Pages
Categories
Search
Top
Bottom

Allow Admin to Edit Users in Multisite


  • neilscott
    Participant

    @neilscott

    I am trying to grant site admin permission to edit user profiles in a multisite installation but keep getting a 404 page no matter how many permissions they have in User Role Editor.

    There is a discussion here that deals with the same topic.

    Permission to edit buddypress users in multisite installs appears to be hardcoded to superadmin in buddypress. How can I change this?

Viewing 3 replies - 1 through 3 (of 3 total)

  • neilscott
    Participant

    @neilscott

    According to this link, it seems like this is part of WordPress core. Surely there must be some way to enable user management by admin without making them a super admin.


    neilscott
    Participant

    @neilscott

    OK, it looks like I was wrong. If “manage_network_users” is enabled, the administrator can edit the WordPress user profile but NOT the BuddyPress extended profile. So, the question is: how can this be enabled in BuddyPress?


    neilscott
    Participant

    @neilscott

    Ok, I think I’ve managed to fix this by creating a new role in functions.php that has the bp_moderate capability.

    The code looks like this in functions.php

    $result = add_role( 'project_admin', __('Project Admin' ),
    
    array(
    
    'read' => true, // true allows this capability
    'edit_posts' => true, // Allows user to edit their own posts
    'edit_pages' => true, // Allows user to edit pages
    'edit_others_posts' => true, // Allows user to edit others posts not just their own
    'create_posts' => true, // Allows user to create new posts
    'manage_categories' => true, // Allows user to manage post categories
    'publish_posts' => true, // Allows the user to publish, otherwise posts stays in draft mode
    'edit_themes' => false, // false denies this capability. User can’t edit your theme
    'install_plugins' => false, // User cant add new plugins
    'update_plugin' => false, // User can’t update any plugins
    'update_core' => false, // user cant perform core updates
    'edit_users' => true,
    'create_users' => true,
    'delete_users' => true,
    'unfiltered_html' => true,
    'bp_moderate' => true
    )
    
    );
Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.
Skip to toolbar