From 2189edaa170966dfb685c4daf002cd1da1902196 Mon Sep 17 00:00:00 2001 From: Christian Richter Date: Wed, 12 Nov 2025 17:52:29 +0100 Subject: [PATCH] remove obsolete code Signed-off-by: Christian Richter --- services/graph/pkg/identity/cache/cache.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/services/graph/pkg/identity/cache/cache.go b/services/graph/pkg/identity/cache/cache.go index 1e419f876..3bd13bf44 100644 --- a/services/graph/pkg/identity/cache/cache.go +++ b/services/graph/pkg/identity/cache/cache.go @@ -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 {