diff --git a/internal/grpc/services/publicstorageprovider/publicstorageprovider.go b/internal/grpc/services/publicstorageprovider/publicstorageprovider.go index 1dd6e9a00c4..98f409ade0a 100644 --- a/internal/grpc/services/publicstorageprovider/publicstorageprovider.go +++ b/internal/grpc/services/publicstorageprovider/publicstorageprovider.go @@ -819,7 +819,7 @@ func (s *service) ListContainer(ctx context.Context, req *provider.ListContainer for i := range listContainerR.Infos { // FIXME how do we reduce permissions to what is granted by the public link? filterPermissions(listContainerR.Infos[i].PermissionSet, share.GetPermissions().Permissions) - //s.setPublicStorageID(listContainerR.Infos[i], tkn) + // s.setPublicStorageID(listContainerR.Infos[i], tkn) if err := addShare(listContainerR.Infos[i], share); err != nil { appctx.GetLogger(ctx).Error().Err(err).Interface("share", share).Interface("info", listContainerR.Infos[i]).Msg("error when adding share") } diff --git a/pkg/auth/scope/publicshare.go b/pkg/auth/scope/publicshare.go index 27f742a04bd..29209d439cd 100644 --- a/pkg/auth/scope/publicshare.go +++ b/pkg/auth/scope/publicshare.go @@ -113,7 +113,7 @@ func publicshareScope(ctx context.Context, scope *authpb.Scope, resource interfa return true, nil case *provider.ListStorageSpacesRequest: - //return checkPublicListStorageSpacesFilter(v.Filters), nil + // return checkPublicListStorageSpacesFilter(v.Filters), nil return true, nil case *link.GetPublicShareRequest: return checkPublicShareRef(&share, v.GetRef()), nil