#7717 closed defect (bug)
roles with bp_moderate capability not seeing BP Admin menu pages
| Reported by: | Venutius | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Core | Version: | 2.9.3 |
| Severity: | normal | 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' );
}
});`
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Sorry, this duplicates #5869