[buddypress-trac] [BuddyPress] #3694: Use bp_core_no_access() with group admin panels instead of 404

buddypress-trac at lists.automattic.com buddypress-trac at lists.automattic.com
Wed Oct 26 20:14:02 UTC 2011


#3694: Use bp_core_no_access() with group admin panels instead of 404
--------------------------+------------------
 Reporter:  boonebgorges  |       Owner:
     Type:  enhancement   |      Status:  new
 Priority:  normal        |   Milestone:  1.6
Component:  Groups        |     Version:
 Severity:  minor         |  Resolution:
 Keywords:  needs-patch   |
--------------------------+------------------

Comment (by sboisvert):

 as a side note, i've been running 1.5.1 with the above lines reversed as I
 alluded to
 {{{
 bp_core_new_subnav_item( array( 'name' => ( !$this->nav_item_name ) ?
 $this->name : $this->nav_item_name, 'slug' => $this->slug, 'parent_slug'
 => $bp->groups->current_group->slug, 'parent_url' =>
 bp_get_group_permalink( $bp->groups->current_group ), 'position' =>
 $this->nav_item_position, 'item_css_id' => 'nav-' . $this->slug,
 'screen_function' => array( &$this, '_display_hook' ), 'user_has_access'
 => $this->enable_nav_item ) );
 if ( $this->enable_nav_item ) {
 }}}

 And it has the desired effect.
 Ray is that what you are referring to?

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


More information about the buddypress-trac mailing list