fix test and check in return

Signed-off-by: Christian Richter <c.richter@opencloud.eu>
This commit is contained in:
Christian Richter
2025-11-06 18:01:58 +01:00
parent c3d7560652
commit 7fe511d6df
2 changed files with 9 additions and 5 deletions
+1 -1
View File
@@ -123,7 +123,7 @@ func (cache IdentityCache) GetCS3User(ctx context.Context, tenantId, userid stri
cache.users.Set(tenantId+"|"+userid, user, ttlcache.DefaultTTL)
} else {
if user.GetId().GetTenantId() != tenantId {
if item.Value().GetId().GetTenantId() != tenantId {
return nil, identity.ErrNotFound
}
user = item.Value()