Opened 12 years ago
Last modified 11 years ago
#2592 new defect (bug)
When not network-activated, bbPress user capabilities are broken.
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Milestone: | 2.8 | Priority: | normal |
| Severity: | normal | Version: | 2.5.3 |
| Component: | API - Roles/Capabilities | Keywords: | |
| Cc: |
Description (last modified by )
I'm using bbPress in conjunction with Buddypress through Commons in a Box.
When bbPress is network-activated, we have no problems.
But when it's network-disabled and enabled only on our root blog, then user capabilities break.
Specifically, the WP_User instance in $currentuser and called by wp_get_current_user() only contains a subset of [allcaps], and is missing capabilities like publish_topics, even though the user may indeed have the ability to publish topics in a given forum.
Instantiating WP_User manually shows all capabilities, but calling it otherwise shows the subset.
This makes it so that some users will join a group and not be able to post topics in that group's forums, even though they should have the permissions to do so.
There is even a button at the top of the page for creating a new topic, but clicking this button has no effect.
If I run bbp_add_caps() (by adding it to my theme's functions.php), this restores their capabilities, but as far as I can tell, updating or disabling/reenabling the plugin causes the capabilities to be restored to this broken state.
Related #2210