Skip to:
Content

bbPress.org

Opened 4 years ago

Last modified 4 years ago

#2825 new defect

buddypress hidden group forum, spectator doesn't see the forum

Reported by: wolly Owned by:
Milestone: 2.7 Priority: normal
Severity: normal Version: 2.5.7
Component: Component - Users Keywords: needs-patch
Cc: wolly66@…

Description

Clean install

WordPress 4.2.2
BuddyPress 2.3.2.1
BBpress 2.5.7
bbPress Advanced Capabilities 1.0
Theme: bp default

I gave to the user with role spectator this 2 capabilities:

read_private_forums
read_hidden_forums

I have an hidden group with forum with one topic
The spectator user can access the group but if i click on forum I receive the message: This group does not currently have a forum.

Change History (3)

#1 @wolly
4 years ago

  • Cc wolly66@… added
  • Component changed from General to Component - Users

#2 @johnjamesjacoby
4 years ago

  • Keywords needs-patch added
  • Milestone changed from Awaiting Review to 2.7

Thanks for reporting this.

I have a hunch that it's a capability mapping issue, probably looking for the moderate capability.

Going to move this to the 2.7 milestone to look into further. If someone can confirm & patch, it's okay to squash this sooner.

#3 @wolly
4 years ago

I think the problem is here:

includes/forum/capabilities.php

line: 53

case 'read_private_forums' :
case 'read_hidden_forums'  :

   // Moderators can always read private/hidden forums
   if ( user_can( $user_id, 'moderate' ) ) {
	$caps = array( 'moderate' );
     }

   break;

I don't know how bbpress work, I try to study but if someone can give me the right informations I can try to patch it.

Note: See TracTickets for help on using tickets.