• Resolved arielmeadow

    (@arielmeadow)


    I have a class of users in the role of “Moderator.” Unfortunately, they are not able to view the BP Members Notes page. They can add Member Notes from user’s profiles (because I used the BP Member Notes settings to give that role the capability), but they don’t have access to the page where they can see all the notes, ie /wp-admin/users.php?page=bp-member-notes

    From my User > Roles page for “Moderators”, (/wp-admin/users.php?page=roles) I’m trying to figure out which of the Capabilities I need to enable so that “Moderators” can view the BP Member Notes page at /wp-admin/users.php?page=bp-member-notes

    Can you let me know what user role capability is tied to being able to view /wp-admin/users.php?page=bp-member-notes?

    https://www.ads-software.com/extend/plugins/bp-member-notes/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author shanebp

    (@shanebp)

    Hi,

    Can your Moderators access any parts of wp-admin ?
    Especially, can they access the Users tab ?

    If so and you feel comfortable with a tiny hack:

    • go into the bp-member-notes plugin files and open this file in a text editor:
      bp-member-notes.php
    • Make a back-up of that file !
    • Then go to Line 293 and change ‘administrator’ to ‘moderator’. The whole line is as follows:
      add_submenu_page( 'users.php', __( 'BP Member Notes', 'bp'), __( 'BP Member Notes', 'bp' ), 'administrator', 'bp-member-notes', array( $this, 'bp_member_notes_admin_screen' ) );
      Note: might need to be ‘moderators’. I doubt it will be a capital M.
    • Save the file and upload it to the plugin folder

    If not, then you’ll have to adjust their Capabilities.
    But perhaps you don’t want them to have the necessary capabilities to be in the User area.
    In that case, I could make it a Menu page instead of a Users SubMenu page.

    I appreciate your raising this issue.
    I provided the hack as a quick fix.

    Please let me know how it goes.
    I’ll think about a better approach and carve out some time to do a 1.1 version.

    Thread Starter arielmeadow

    (@arielmeadow)

    Super! My developer used your hack, except she opted for a capability rather than a role name. It worked like a charm.

    I do wish that Moderators could access the full list of Member Notes without accessing the plugin settings (ie, picking which members can see the notes), but it’s a small quibble. I trust my moderators not to fiddle with the settings.

    Plugin Author shanebp

    (@shanebp)

    Hmmm – which capability did your dev use ?
    The plugin settings area should only be available to those with the ‘add_users’ capability.
    Perhaps she could change it to ‘edit_users’ ?
    That should allow your mods to see the notes but not change the settings.

    Thread Starter arielmeadow

    (@arielmeadow)

    The dev used “promote_users.”

    We’ll try “edit_users” instead.

    Plugin Author shanebp

    (@shanebp)

    Ariel –

    A 1.1 version is now available.
    I’ve moved the admin page under ‘Tools’ and added a custom capability to anyone granted access.
    So your moderators can see the list of notes but not the access settings. Only those with the ‘activate_plugins’ capability can see those settings.

    If you’d like to try it:

    • deactivate the plugin
    • download the 1.1 zip
    • overwrite the files in the plugin folder on your server
    • activate the plugin
    Plugin Author shanebp

    (@shanebp)

    Marking as resolved.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘What user role capability is tied to being able to view Member Notes admin page?’ is closed to new replies.