remove obsolete code

Signed-off-by: Christian Richter <c.richter@opencloud.eu>
This commit is contained in:
Christian Richter
2025-11-12 17:52:29 +01:00
parent 28fdfded71
commit 2189edaa17

View File

@@ -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 {