mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2025-12-23 22:29:59 -05:00
remove obsolete code
Signed-off-by: Christian Richter <c.richter@opencloud.eu>
This commit is contained in:
5
services/graph/pkg/identity/cache/cache.go
vendored
5
services/graph/pkg/identity/cache/cache.go
vendored
@@ -116,11 +116,6 @@ func (cache IdentityCache) GetCS3User(ctx context.Context, tenantId, userid stri
|
||||
}
|
||||
return nil, errorcode.New(errorcode.GeneralException, err.Error())
|
||||
}
|
||||
// check if the user is in the correct tenant
|
||||
// if not we need to return before the cache is touched
|
||||
if user.GetId().GetTenantId() != tenantId {
|
||||
return nil, identity.ErrNotFound
|
||||
}
|
||||
|
||||
cache.users.Set(tenantId+"|"+userid, user, ttlcache.DefaultTTL)
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user