[buddypress-trac] [BuddyPress] #5115: Admin panels meta cap review for Group and Activity moderation
buddypress-trac
noreply at wordpress.org
Fri Jul 26 13:22:32 UTC 2013
#5115: Admin panels meta cap review for Group and Activity moderation
----------------------------+------------------
Reporter: ericlewis | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: 1.9
Component: Administration | Version: 1.7
Severity: normal | Resolution:
Keywords: has-patch |
----------------------------+------------------
Comment (by boonebgorges):
Yup, good catch. In fact, with the cap changed in `add_menu_page()`, we no
longer need the inital `current_user_can()` check - `add_menu_page()`
takes care of it for access to the panel, and the `load-$hook` action will
never fire for unauthorized users.
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/5115#comment:2>
BuddyPress <http://buddypress.org/>
BuddyPress
More information about the buddypress-trac
mailing list