[buddypress-trac] [BuddyPress Trac] #5869: bp_moderate capability doesn't allow access to Groups and Activity admin menus
buddypress-trac
noreply at wordpress.org
Tue Sep 9 17:06:13 UTC 2014
#5869: bp_moderate capability doesn't allow access to Groups and Activity admin
menus
--------------------------+-----------------------------
Reporter: ryanjhale | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Core | Version:
Severity: normal | Keywords:
--------------------------+-----------------------------
After creating a new WordPress role with the bp_moderate capability, the
Groups and Activity admin menus are not displayed. Below are the
capabilities of the user in this new role along with a screenshot of what
the user sees.
Screenshot:
https://www.dropbox.com/s/jyu4pign0aaghlt/Screen%20Shot%202014-09-09%20at%2010.13.46%20AM.png?dl=0
Capabilities available with role:
activate_plugins => false,
delete_others_pages => true,
delete_others_posts => true,
delete_pages => true,
delete_plugins => false,
delete_posts => true,
delete_private_pages => true,
delete_private_posts => true,
delete_published_pages => true,
delete_published_posts => true,
edit_dashboard => false,
edit_files => false,
edit_others_pages => true,
edit_others_posts => true,
edit_pages => true,
edit_posts => true,
edit_private_pages => true,
edit_private_posts => true,
edit_published_pages => true,
edit_published_posts => true,
edit_theme_options => false,
export => true,
import => false,
list_users => true,
manage_categories => true,
manage_links => true,
manage_options => false,
moderate_comments => true,
promote_users => true,
publish_pages => true,
publish_posts => true,
read_private_pages => true,
read_private_posts => true,
read => true,
remove_users => true,
switch_themes => false,
upload_files => true,
update_core => false,
update_plugins => false,
update_themes => false,
install_plugins => false,
install_themes => false,
delete_themes => false,
edit_plugins => false,
edit_themes => false,
edit_users => true,
create_users => true,
delete_users => true,
unfiltered_html => true,
bp_moderate => true
It appears that the user should be able to see these menus as it appears
that bp_moderate is the capability required to see the menu. From bp-
groups/bp-groups-admin.php:
$hook = add_menu_page(
__( ‘Groups’, ‘buddypress’ ),
__( ‘Groups’, ‘buddypress’ ),
‘bp_moderate’,
‘bp-groups’,
‘bp_groups_admin’,
‘div’
);
Side note: If I set manage_options => true, the menus display correctly,
but that is not desired in this case.
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/5869>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac
More information about the buddypress-trac
mailing list