Skip to:

Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#7717 closed defect (bug)

roles with bp_moderate capability not seeing BP Admin menu pages

Reported by: venutius's profile Venutius Owned by:
Milestone: Priority: normal
Severity: normal Version: 2.9.3
Component: Core Keywords: bp_moderate


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
6 years ago

  • Status changed from new to closed

Sorry, this duplicates #5869

#2 @DJPaul
6 years ago

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