[buddypress-trac] [BuddyPress Trac] #4785: Decouple "visibility" and "access" properties

buddypress-trac noreply at wordpress.org
Tue Jun 17 21:24:42 UTC 2014


#4785: Decouple "visibility" and "access" properties
-------------------------+------------------
 Reporter:  smninja      |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  2.1
Component:  Groups       |     Version:  1.7
 Severity:  normal       |  Resolution:
 Keywords:  has-patch    |
-------------------------+------------------

Comment (by dcavins):

 A quick comment: The base functions `user_can_see_nav_item( )` and
 `user_can_visit()` were showing every tab to site admins, including those
 that didn't apply to the current group. I've clamped them down to not
 display if the parameter is set to "noone."

 Which reminds me that we'll need to add to the API an example of how to
 add a function for enabling plugins per group (I'm guessing you'd want to
 set the access level to something other than "noone" for "enabled" or
 "noone" for "disabled" based on the group id.)

--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/4785#comment:26>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list