Skip to:
Content

Opened 5 years ago

Last modified 5 years ago

#2592 new defect

When not network-activated, bbPress user capabilities are broken.

Reported by: jreeve Owned by:
Milestone: 2.8 Priority: normal
Severity: normal Version: 2.5.3
Component: API - Roles/Capabilities Keywords:
Cc:

Description (last modified by netweb)

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.

Change History (3)

#1 @netweb
5 years ago

  • Description modified (diff)

#2 @netweb
5 years ago

  • Component changed from General to Roles/Capabilities
  • Milestone changed from Awaiting Review to 2.7

Related #2210

#3 @johnjamesjacoby
5 years ago

  • Milestone changed from 2.7 to 2.8

Bumping all 2.7 to 2.8 milestone.

Note: See TracTickets for help on using tickets.