deps: Bump reva to latest main
for getting https://github.com/opencloud-eu/reva/pull/360
This commit is contained in:
committed by
Ralf Haferkamp
parent
f096285769
commit
9ec532da93
+4
-1
@@ -150,7 +150,10 @@ func NewUnary(m map[string]interface{}, unprotected []string, tp trace.TracerPro
|
||||
log.Warn().Err(err).Msg("access token is invalid")
|
||||
return nil, status.Errorf(codes.PermissionDenied, "auth: core access token is invalid")
|
||||
}
|
||||
|
||||
if sharedconf.MultiTenantEnabled() && u.GetId().GetType() != userpb.UserType_USER_TYPE_SERVICE && u.GetId().GetTenantId() == "" {
|
||||
log.Warn().Msg("user has no tenant id, rejecting request")
|
||||
return nil, status.Errorf(codes.PermissionDenied, "auth: user has no tenant id, rejecting request")
|
||||
}
|
||||
// store user and scopes in context
|
||||
ctx = ctxpkg.ContextSetUser(ctx, u)
|
||||
ctx = ctxpkg.ContextSetScopes(ctx, tokenScope)
|
||||
|
||||
Reference in New Issue
Block a user