fix error response

This commit is contained in:
pascal
2026-04-23 16:29:43 +02:00
parent d774e9a62a
commit 4051af499a

View File

@@ -958,7 +958,7 @@ func (am *DefaultAccountManager) lookupUserInCache(ctx context.Context, userID s
}
if user.AccountID != accountID {
return nil, nil
return nil, fmt.Errorf("user %s does not belong to account %s", userID, accountID)
}
key := user.IntegrationReference.CacheKey(accountID, userID)