Actually update the owner

This commit is contained in:
Amelia 2025-07-06 16:50:56 +02:00
parent 6cac60342b
commit 7cdf69533b

View file

@ -568,6 +568,8 @@ public class AccountController : BaseApiController
return BadRequest(await _localizationService.Translate(User.GetUserId(), "cannot-change-ownership-original-user"));
}
user.Owner = dto.Owner;
if (user.Owner == AppUserOwner.OpenIdConnect)
{
// Do not change any other fields when the user is owned by OIDC