Changeset 11554
- Timestamp:
- 05/16/2017 10:04:10 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-groups/classes/class-bp-group-extension.php
r11553 r11554 819 819 * Determine whether the current user has access to visit this tab. 820 820 * 821 * Note that this controls the ability of a user to access a tab. 822 * Display of the navigation item is controlled by user_can_see_nav_item(). 823 * 821 824 * @since 2.1.0 822 825 * … … 827 830 828 831 // Always allow moderators to visit a tab, even if explicitly 'noone' 829 if ( 'noone' !== $this->params['access']&& current_user_can( 'bp_moderate' ) ) {832 if ( ( 'noone' !== $this->params['access'] ) && current_user_can( 'bp_moderate' ) ) { 830 833 return true; 831 834 }
Note: See TracChangeset
for help on using the changeset viewer.