From f08e8c16d4238e514969e53f81bee3dcf9da8b20 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn=20Friedrich=20Dreyer?= Date: Fri, 18 Mar 2022 12:08:42 +0000 Subject: [PATCH] fix lint MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jörn Friedrich Dreyer --- .../services/publicstorageprovider/publicstorageprovider.go | 2 +- pkg/auth/scope/publicshare.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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