[buddypress-trac] [BuddyPress] #2377: Create show_hidden argument for bp_has_groups
buddypress-trac at lists.automattic.com
buddypress-trac at lists.automattic.com
Mon Jan 3 22:29:11 UTC 2011
#2377: Create show_hidden argument for bp_has_groups
---------------------------+-----------------------
Reporter: boonebgorges | Owner:
Type: enhancement | Status: new
Priority: major | Milestone: 1.3
Component: Core | Version:
Resolution: | Keywords: has-patch
---------------------------+-----------------------
Comment (by boonebgorges):
Logic is good. It's just the converse of what was already there.
Basically, show_hidden should default to true when (1) you are the super
admin, or (2) you're looking at your own My Groups (in other words, your
id == the user_id param of bp_has_groups()).
Make sure to swap the is_site_admin() with is_super_admin().
--
Ticket URL: <https://trac.buddypress.org/ticket/2377#comment:6>
BuddyPress <http://buddypress.org/>
BuddyPress
More information about the buddypress-trac
mailing list