Opened 15 years ago
Closed 15 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: | |
|---|---|---|---|
| Priority: | normal | Milestone: | 1.6 |
| Component: | Groups | Version: | 1.5 |
| Severity: | normal | 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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
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.