Changeset 7456
- Timestamp:
- 10/22/2013 08:56:04 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-members/bp-members-loader.php
r7454 r7456 138 138 unset( $bp->canonical_stack['component'] ); 139 139 } 140 141 // if we're on a spammer's profile page, only users with the 'bp_moderate' cap 142 // can view subpages on the spammer's profile 143 // 144 // users without the cap trying to access a spammer's subnav page will get 145 // redirected to the root of the spammer's profile page. this occurs by 146 // by removing the component in the canonical stack. 147 if ( bp_is_user_spammer( bp_displayed_user_id() ) && ! bp_current_user_can( 'bp_moderate' ) ) { 148 unset( $bp->canonical_stack['component'] ); 149 } 140 150 } 141 151 }
Note: See TracChangeset
for help on using the changeset viewer.