[buddypress-trac] [BuddyPress Trac] #7192: Improve $args included in `bp_current_user_can` and `bp_user_can` filters.

buddypress-trac noreply at wordpress.org
Wed Sep 14 22:13:36 UTC 2016


#7192: Improve $args included in `bp_current_user_can` and `bp_user_can` filters.
------------------------------+-----------------------
 Reporter:  dcavins           |       Owner:  dcavins
     Type:  defect (bug)      |      Status:  reopened
 Priority:  normal            |   Milestone:  2.7
Component:  Core              |     Version:  1.6
 Severity:  normal            |  Resolution:
 Keywords:  has-patch commit  |
------------------------------+-----------------------
Changes (by boonebgorges):

 * keywords:  dev-feedback has-patch commit => has-patch commit


Comment:

 Yup, patch fixes the issue for me.

 Are there any future implications we should be thinking about, knowing
 that we can't use our filtered `bp_loggedin_user_id()` in the context of
 cap checks? I see that this has likely always been an issue (hidden behind
 `current_user_can_for_blog()`) but it might be something to flag for
 future research.

--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/7192#comment:19>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list