public static function gatekeeper($ability = null) {
    if (!isset(self::$currentUser)) {
      return false;
    }
    return self::$currentUser->gatekeeper($ability);
  }
public static function gatekeeper($ability = null) {
    if (!isset(self::$currentUser)) {
      return false;
    }
    return self::$currentUser->gatekeeper($ability);
  }
public static function gatekeeper ( $ ability = null ) { if ( ! isset ( self :: $ currentUser ) ) { return false ; } return self :: $ currentUser -> gatekeeper ( $ ability ) ; }
Check to see if the current user has an ability.

If $ability is null, it will check to see if a user is currently logged
in.

@param string $ability The ability.
@return bool True or false.
Check to see if the current user has an ability .