fkooman\RemoteStorage\RemoteStorageService::hasReadScope PHP Method

hasReadScope() private method

private hasReadScope ( fkooman\Rest\Plugin\Authentication\Bearer\Scope $i, $moduleName )
$i fkooman\Rest\Plugin\Authentication\Bearer\Scope
    private function hasReadScope(Scope $i, $moduleName)
    {
        $validReadScopes = array('*:r', '*:rw', sprintf('%s:%s', $moduleName, 'r'), sprintf('%s:%s', $moduleName, 'rw'));
        foreach ($validReadScopes as $scope) {
            if ($i->hasScope($scope)) {
                return true;
            }
        }
        return false;
    }