[buddypress-trac] [BuddyPress] #3711: "Demote to member" button shouldn't show up if you're the only admin of the group

buddypress-trac at lists.automattic.com buddypress-trac at lists.automattic.com
Tue Nov 8 22:28:30 UTC 2011


#3711: "Demote to member" button shouldn't show up if you're the only admin of the
group
--------------------------+------------------------------
 Reporter:  r-a-y         |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Groups        |     Version:  1.5
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |
--------------------------+------------------------------
Changes (by aliso):

 * cc: aliso (added)
 * keywords:  needs-patch => has-patch


Comment:

 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.

-- 
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/3711#comment:1>
BuddyPress <http://buddypress.org/>
BuddyPress


More information about the buddypress-trac mailing list