Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
04/30/2011 02:50:09 PM (14 years ago)
Author:
djpaul
Message:

Specify user_has_access param on all items added to subnav. Fixes 3046, props sbrajesh

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-xprofile/bp-xprofile-loader.php

    r4281 r4314  
    134134            'parent_slug'     => $this->slug,
    135135            'screen_function' => 'xprofile_screen_display_profile',
     136            'user_has_access' =>  bp_is_my_profile(),
    136137            'position'        => 10
    137138        );
     
    144145            'parent_slug'     => $this->slug,
    145146            'screen_function' => 'xprofile_screen_edit_profile',
     147            'user_has_access' =>  bp_is_my_profile(),
    146148            'position'        => 20
    147149        );
     
    154156            'parent_slug'     => $this->slug,
    155157            'screen_function' => 'xprofile_screen_change_avatar',
     158            'user_has_access' =>  bp_is_my_profile(),
    156159            'position'        => 30
    157160        );
Note: See TracChangeset for help on using the changeset viewer.