Skip to:
Content
Pages
Categories
Search
Top
Bottom

[Resolved] Editors have to be able to edit other user profiles

  • Avatar of Rocio Valdivia
    Rocio Valdivia
    Participant

    @_dorsvenabili

    Hi guys!,

    I have an installation with WP 3.3.1 and BP 1.5.5 which I have created a profile group with some fields that editors have to fill in for other users (only those fields).

    The question is that only the admin or the own user can see and edit the following page. Editors clicking that following link will see a 404 page not found.

    http://example.com/members/username/profile/edit/group/4

    I’m checking the following templates to try to find the capability restriction o whatever is restricting the page, but nothing found here:

    /wp-content/themes/my-theme/members/single/profile/profile-loop.php
    /wp-content/themes/my-theme/members/single/profile/edit.php
    /wp-content/themes/my-theme/members/single/profile.php

    Any help?

    Thanks in advance :)

Viewing 8 replies - 1 through 8 (of 8 total)
  • In 1.6 you *might* be able to do this. Will post details later when in from work.

    Avatar of Rocio Valdivia
    Rocio Valdivia
    Participant

    @_dorsvenabili

    Mmmmm so is there no way to do it with BP 1.5.5? :(

    Avatar of Rocio Valdivia
    Rocio Valdivia
    Participant

    @_dorsvenabili

    Thanks anyway for your fast reply :)

    Avatar of Paul Gibbs
    Paul Gibbs
    Keymaster

    @djpaul

    No, not in 1.5. We’ve added a ‘bp_moderator’ capability into 1.6. It basically replaced all the is_super_admin() checks. I don’t know if we ever finished implementing.

    You could grant certain users the bp_moderator capability and test it.

    Avatar of Rocio Valdivia
    Rocio Valdivia
    Participant

    @_dorsvenabili

    Ok, thanks Paul :). I will update to 1.6 and will test with the bp_moderator capability.

    Avatar of Rocio Valdivia
    Rocio Valdivia
    Participant

    @_dorsvenabili

    Ok, I know that it’s not a good practice to change the core, but if someone needs it, here you have how editors can edit other user profiles:

    /wp-content/plugins/buddypress/bp-xprofile/bp-xprofile-screens.php -> line 35

    if ( !bp_is_my_profile() && !is_super_admin())

    change it for this:

    if ( !bp_is_my_profile() && !is_super_admin() && !current_user_can(‘moderate_comments’))

    It works ;)

    Avatar of Snegu
    Snegu
    Participant

    @snegu

    Rocio, did you do this with Buddypress 1.5.5 or 1.6?

    Avatar of Rocio Valdivia
    Rocio Valdivia
    Participant

    @_dorsvenabili

    I did it with BP 1.5.5, I said it in the first post of this topic ;)

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

You must be logged in to reply to this topic.