Opened 13 years ago
Closed 13 years ago
#3711 closed defect (bug) (fixed)
"Demote to member" button shouldn't show up if you're the only admin of the group
Reported by: | r-a-y | Owned by: | |
---|---|---|---|
Milestone: | 1.6 | Priority: | normal |
Severity: | normal | Version: | 1.5 |
Component: | Groups | Keywords: | has-patch |
Cc: | aliso |
Description
If there is only one member of a group, that member is the sole group admin.
So under the group "Admin > Members" page, the admin should not see the "Demote to member" button.
Attachments (1)
Change History (4)
Note: See
TracTickets for help on using
tickets.
This is my first time submitting a patch - woohoo!
I wrapped the demote button in a conditional to make sure the button only gets displayed if there's more than one admin in the group. I used bp_group_admin_ids() to count the number of admins.