Skip to:
Content

BuddyPress.org

Opened 12 years ago

Closed 11 months ago

#6441 closed defect (bug) (invalid)

Missing break statement inside bp_groups_admin_load() function

Reported by: tw2113 Owned by: espellcaste
Priority: normal Milestone:
Component: Groups Version:
Severity: normal Keywords: needs-patch close
Cc:

Description

The "mod" case section is missing a break statement.

Change History (5)

#1 @imath
12 years ago

If you add the break statement, then it's no more possible to promote a member as a moderator of the group from the administration screen.

So this ticket needs a deeper investigation, we shouldn't touch anything about it in 2.3.

#2 @DJPaul
11 years ago

  • Keywords needs-patch added
  • Milestone Awaiting Review → Future Release

#3 @sourabh.matolia
20 months ago

  • Keywords close added

Hello,

Looks like It is intentional that we don't have a 'break' statement under
function 'bp_groups_admin_load' > switch ( $new_role ) > case 'mod'.

case 'mod' > Simply change the user role to 'member', next it gets into the case 'admin'

case 'admin' > Updates the new role to mod (Moderator)

I think we can close the ticket.

#4 @espellcaste
20 months ago

  • Milestone Awaiting Contributions → Awaiting Review
  • Owner set to espellcaste
  • Status new → assigned

#5 @espellcaste
11 months ago

  • Milestone Awaiting Review
  • Resolution → invalid
  • Status assigned → closed
Note: See TracTickets for help on using tickets.