Skip to content

Commit

Permalink
fix bug 71886
Browse files Browse the repository at this point in the history
  • Loading branch information
pavelbannov committed Nov 29, 2024
1 parent b925451 commit 44c52d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion products/ASC.People/Server/Api/UserController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,7 @@ public async Task<EmployeeFullDto> ChangeUserPassword(MemberBaseByIdRequestDto i
return null;
}

if (_userManager.IsSystemUser(user.Id))
if (_userManager.IsSystemUser(user.Id) || user.Status == EmployeeStatus.Terminated)
{
throw new SecurityException();
}
Expand Down

0 comments on commit 44c52d4

Please sign in to comment.