Skip to:
Content

BuddyPress.org

Opened 11 years ago

Closed 8 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
11 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 ReviewFuture Release

#3 @sourabh.matolia
17 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
17 months ago

  • Milestone Awaiting ContributionsAwaiting Review
  • Owner set to espellcaste
  • Status newassigned

#5 @espellcaste
8 months ago

  • Milestone Awaiting Review
  • Resolutioninvalid
  • Status assignedclosed
Note: See TracTickets for help on using tickets.