Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
Signed-off-by: Jörn Friedrich Dreyer <[email protected]>
  • Loading branch information
butonic committed Mar 18, 2022
1 parent bb5c1ac commit f08e8c1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/auth/scope/publicshare.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f08e8c1

Please sign in to comment.