private function getAccess($accessType, $userId)
    {
        if (!isset($this->permissionsById[$userId]))
        {
            return false;
        }
        if (!isset($this->permissionsById[$userId][$accessType]))
        {
            return false;
        }

        return $this->permissionsById[$userId][$accessType];
    }
private function getAccess($accessType, $userId)
    {
        if (!isset($this->permissionsById[$userId]))
        {
            return false;
        }
        if (!isset($this->permissionsById[$userId][$accessType]))
        {
            return false;
        }

        return $this->permissionsById[$userId][$accessType];
    }
private function getAccess ( $ accessType , $ userId ) { if ( ! isset ( $ this -> permissionsById [ $ userId ] ) ) { return false ; } if ( ! isset ( $ this -> permissionsById [ $ userId ] [ $ accessType ] ) ) { return false ; } return $ this -> permissionsById [ $ userId ] [ $ accessType ] ; }
Get if the given userId has a permission for the given access type or not.

@param string $accessType Access name.
@param string $userId User id.

@return bool
Get if the given userId has a permission for the given access type or not .