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)
#3
@
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.
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
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.