BuddyDev

Search

[Resolved] BuddyPress Profile Visibility Manager problem on Multisite

  • Participant
    Level: Initiated
    Posts: 1
    FoF on #26122

    Hi,

    We’re using BuddyPress Profile Visibility Manager on one site within a Multisite install to only allow admins to see the memberlist and all user profiles.

    This only works for people that are SuperAdmins on the multisite netwerk and not for people that are only admin on this single site. Superadmins can see all they need to see, but the ‘normal’ admins can only see their own profile, just like users with less permissions.

    Can you please help?

    Wordpress 5.2.4
    Multisite, no subdomain install, domain mapping enabled
    BuddyPress 4.3.0 and 5.0.0 (no difference)
    BuddyPress Profile Visibility Manager 1.7.3 and 1.8.0 (no difference)

    Kind regards, Thierry

  • Keymaster
    (BuddyDev Team)
    Posts: 24190
    Brajesh Singh on #26125

    Hi Thierry,
    Thank you for using the plugin.

    I will push an update today and will share code to allow normal admins have same permission as the super admin.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 24190
    Brajesh Singh on #26142

    Please upgrade to 1.8.1 and after that, Please put this in your bp-custom.php

    
    
    add_filter( 'bp_profile_visibility_is_admin_user', function ( $is ) {
    	return current_user_can( 'list_users' );
    });
    

    That will allow admins the same feature as super admin in this plugin.

    Regards
    Brajesh

  • Participant
    Level: Initiated
    Posts: 1
    FoF on #26203

    Thanks, that fixed the issue!

  • Keymaster
    (BuddyDev Team)
    Posts: 24190
    Brajesh Singh on #26213

    You are welcome.

The topic ‘ [Resolved] BuddyPress Profile Visibility Manager problem on Multisite’ is closed to new replies.

This topic is: resolved