Opened 12 years ago
Closed 12 years ago
#2256 closed defect (bug) (fixed)
bbp_is_user_keymaster() seems to always return false
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | 2.3 | Priority: | normal |
Severity: | normal | Version: | 2.2.3 |
Component: | API - Roles/Capabilities | Keywords: | has-patch needs-testing |
Cc: |
Description
Hi,
Using latest bbPress (trunk) with latest BuddyPress (trunk), i was a bit surprised as a super admin i wasn't able to post in forums of private groups or change the forum attached to one group. I've checked, and the trouble seems to be in the bbp_is_user_keymaster() function. My user_id to check upon user_can( $user_id, 'keep_gate' ) was always 0, so although my meta_key wp_capabilities was containing bbp_keymaster, i wasn't recognized as so.
Applying the diff i attach to this ticket is solving my problem.
Attachments (1)
Change History (5)
Note: See
TracTickets for help on using
tickets.
maybe to rename $_user_id to $user_id?