#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)
Note: See
TracTickets for help on using
tickets.
Sorry, this duplicates #5869