Mark linked identity context as self
All checks were successful
CI Smoke / host-smoke (push) Successful in 0s
CI Smoke / container-smoke (push) Successful in 2s

This commit is contained in:
tegwick 2026-08-14 15:46:17 +02:00
parent d4a13275d0
commit 10ee042c41
2 changed files with 9 additions and 1 deletions

View file

@ -2225,7 +2225,10 @@ class UserEngineService:
correlation_id=correlation_id,
application_id=application_id,
target_user_id=user_id,
context={"include_profile": include_profile},
context={
"include_profile": include_profile,
"self": identity is not None and identity.user_id == user_id,
},
)
identities = self.store.identities_for_user(user.user_id)
memberships = self.store.memberships_for_user(