Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
05/16/2017 10:04:10 PM (3 years ago)
Author:
johnjamesjacoby
Message:

Groups: Update phpdoc block in user_can_visit(), and add brackets inside comparison.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-groups/classes/class-bp-group-extension.php

    r11553 r11554  
    819819     * Determine whether the current user has access to visit this tab.
    820820     *
     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     *
    821824     * @since 2.1.0
    822825     *
     
    827830
    828831        // 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' ) ) {
    830833            return true;
    831834        }
Note: See TracChangeset for help on using the changeset viewer.