1 | | 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. |
| 1 | I'm using bbPress in conjunction with Buddypress through Commons in a Box. |
| 2 | |
| 3 | When bbPress is network-activated, we have no problems. |
| 4 | |
| 5 | But when it's network-disabled and enabled only on our root blog, then user capabilities break. |
| 6 | |
| 7 | 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. |
| 8 | |
| 9 | Instantiating `WP_User` manually shows all capabilities, but calling it otherwise shows the subset. |
| 10 | |
| 11 | 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. |
| 12 | |
| 13 | There is even a button at the top of the page for creating a new topic, but clicking this button has no effect. |
| 14 | |
| 15 | 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. |