src/Authorization/SecuredAccessTrait.php
public function isUsernameAllowed($username, $attribute = 'access')
    {
        $usernameStr = (string) $username;
        $attrStr     = (string) $attribute;
        return (isset($this->allowedUsernames[$usernameStr]) && isset($this->allowedUsernames[$usernameStr][$attrStr]))
                ? $this->allowedUsernames[$usernameStr][$attrStr] : false;
    }
public function isUsernameAllowed($username, $attribute = 'access')
    {
        $usernameStr = (string) $username;
        $attrStr     = (string) $attribute;
        return (isset($this->allowedUsernames[$usernameStr]) && isset($this->allowedUsernames[$usernameStr][$attrStr]))
                ? $this->allowedUsernames[$usernameStr][$attrStr] : false;
    }
public function isUsernameAllowed ( $ username , $ attribute = 'access' ) { $ usernameStr = ( string ) $ username ; $ attrStr = ( string ) $ attribute ; return ( isset ( $ this -> allowedUsernames [ $ usernameStr ] ) && isset ( $ this -> allowedUsernames [ $ usernameStr ] [ $ attrStr ] ) ) ? $ this -> allowedUsernames [ $ usernameStr ] [ $ attrStr ] : false ; }
Check if a specific username is allowed to access this context
@param string $username Username
@param string $attribute Attribute
@return bool
Check if a specific username is allowed to access this context