Actually update the owner
This commit is contained in:
parent
6cac60342b
commit
7cdf69533b
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue