Skip to:
Content

bbPress.org

Changes between Initial Version and Version 1 of Ticket #2592


Ignore:
Timestamp:
05/16/2014 03:20:42 AM (8 years ago)
Author:
netweb
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #2592 – Description

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