Skip to:
Content

BuddyPress.org

Opened 20 months ago

Closed 20 months ago

Last modified 19 months ago

#7717 closed defect (bug)

roles with bp_moderate capability not seeing BP Admin menu pages

Reported by: Venutius Owned by:
Milestone: Priority: normal
Severity: normal Version: 2.9.3
Component: Core Keywords: bp_moderate
Cc:

Description

I've been trying to find a solution to allow some roles the ability to view the BP Admin menu options such as Activity. I've assigned the role "Editor" the capability of bp_moderate, have confirmed this is being applied and confirmed that bp_moderate is the required capability to view the Activity admin page. however this page is still not showing for Editors.

I've tried several ways of adding this capability, the most recent code is as follows:

add_action( 'admin_init', function() {
    $editor = get_role( 'editor' );

    if ( ! $editor->has_cap( 'bp_moderate' ) ) {
        $editor->add_cap( 'bp_moderate' );
    }
});`

Change History (2)

#1 @Venutius
20 months ago

  • Status changed from new to closed

Sorry, this duplicates #5869

#2 @DJPaul
19 months ago

  • Milestone Awaiting Review deleted
Note: See TracTickets for help on using tickets.