[buddypress-trac] [BuddyPress] #5115: Admin panels meta cap review for Group and Activity moderation
buddypress-trac
noreply at wordpress.org
Fri Jul 26 13:26:30 UTC 2013
#5115: Admin panels meta cap review for Group and Activity moderation
----------------------------+---------------------------
Reporter: ericlewis | Owner: boonebgorges
Type: enhancement | Status: closed
Priority: normal | Milestone: 1.9
Component: Administration | Version: 1.7
Severity: normal | Resolution: fixed
Keywords: has-patch |
----------------------------+---------------------------
Changes (by boonebgorges):
* owner: => boonebgorges
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"7312"]:
{{{
#!CommitTicketReference repository="" revision="7312"
Use bp_moderate cap for Activity and Groups panels
When adding the Activity and Groups administration panels using
add_menu_page(), use the 'bp_moderate' cap rather than 'manage_options'
(which was itself a stand-in for our old is_super_admin() checks).
This allows access to the panels to be granted to non-super-admin users
via plugin. The change also means that we can remove the redundant
current_user_can() check at the beginning of the methods in question.
Fixes #5115
Props ericlewis
}}}
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/5115#comment:3>
BuddyPress <http://buddypress.org/>
BuddyPress
More information about the buddypress-trac
mailing list