In WP3 multisite, how admin can edit user profiles ? (6 posts)

  1. mcarballo
    Posted 5 years ago #

    I ran a test upgrade from WordPressMU 2.9 to the latest WordPress 3.0.1 MultiSite. Everything went well but I am unable to give the possibility to admins (of blog child) to modify the user profiles of their site.

    Previously this functionality to allow it enough to comment line 63 of file wp-admin/user-edit.php like this:

    // Only allow site admins to edit every user.
    /* if ( defined( "EDIT_ANY_USER" ) == false && !is_site_admin() && $user_id != $current_user->ID )
    wp_die( __( 'You do not have permission to edit this user.' ) ); */

    In the latest versions of these lines no longer exist, they were replaced by line 73 the following:

    // Only allow super admins on multisite to edit every user.
    if ( is_multisite() && ! current_user_can( 'manage_network_users' ) && $user_id != $current_user->ID && ! apply_filters( 'enable_edit_any_user_configuration', true ) )
    wp_die( __( 'You do not have permission to edit this user.' ) );

    But if I comment as before it, nothing happens ...
    Does anyone have the same problem or idea to solve it?


  2. I believe that's by design (super admins can modify user profiles as well as all sites, admins can modify THEIR sites, etc etc and so on and so forth).

  3. mcarballo
    Posted 5 years ago #

    Thanks for your answer Ipstenu

    Yes, Super Admins can modify user profiles as well as all sites but admins can't modify all user profiles of their sites (only their profile).
    So admins can delete all users of their sites but not edit these user profiles...

    So, I'm always looking for a solution...

  4. You could try a plugin like Role Scopper or something similar to add that ability to Admins.

    That said, it defeats the purpose of MultiSite roles. You see, since accounts are for ALL sites, changing a users' info changes it for ALL sites on your install. Which isn't something you want to give people permission to do willy nilly.

    I'd suggest making a new role, User Admin, which lets them admin their own site AND delete users. But you'll have to find the right plugin to meddle with roles like that.

  5. mcarballo
    Posted 5 years ago #

    Thank you for your help
    I found a plugin that exceeds my expectations: User Role Editor
    After some tests, this plugin keeps an inconvenience than to pass easily for SuperAdmin but after a post to its author it will be resolved soon
    Thank you again ...

  6. mcarballo
    Posted 4 years ago #

    Sorry in my last post I talked a plugin. It is not the "User Role Editor" but "User Switching". And you will find in this post explaining my problem.

Topic Closed

This topic has been closed to new replies.

About this Topic