Skip to content

Commit

Permalink
cleanup comments
Browse files Browse the repository at this point in the history
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
  • Loading branch information
butonic committed Mar 21, 2022
1 parent fc6e5d0 commit 2833e9b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion internal/grpc/interceptors/auth/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
1 change: 0 additions & 1 deletion pkg/auth/scope/publicshare.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2833e9b

Please sign in to comment.