diff --git a/internal/grpc/interceptors/auth/auth.go b/internal/grpc/interceptors/auth/auth.go index 3ecdb6cd1e..a78bd37016 100644 --- a/internal/grpc/interceptors/auth/auth.go +++ b/internal/grpc/interceptors/auth/auth.go @@ -212,7 +212,7 @@ func (ss *wrappedServerStream) Context() context.Context { return ss.newCtx } -// dismantleToken extraclts the user and scopes from the reva access token +// dismantleToken extracts the user and scopes from the reva access token func dismantleToken(ctx context.Context, tkn string, req interface{}, mgr token.Manager, gatewayAddr string, fetchUserGroups bool) (*userpb.User, map[string]*authpb.Scope, error) { u, tokenScope, err := mgr.DismantleToken(ctx, tkn) if err != nil { diff --git a/pkg/auth/scope/publicshare.go b/pkg/auth/scope/publicshare.go index 46054cef8d..7dc8372394 100644 --- a/pkg/auth/scope/publicshare.go +++ b/pkg/auth/scope/publicshare.go @@ -113,7 +113,6 @@ func publicshareScope(ctx context.Context, scope *authpb.Scope, resource interfa return true, nil case *provider.ListStorageSpacesRequest: - // return checkPublicListStorageSpacesFilter(v.Filters), nil return true, nil case *link.GetPublicShareRequest: return checkPublicShareRef(&share, v.GetRef()), nil