From 44c52d41103d6fd17642fc789d8e0f8b6d9b7824 Mon Sep 17 00:00:00 2001 From: pavelbannov Date: Fri, 29 Nov 2024 13:03:29 +0300 Subject: [PATCH] fix bug 71886 --- products/ASC.People/Server/Api/UserController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/products/ASC.People/Server/Api/UserController.cs b/products/ASC.People/Server/Api/UserController.cs index 293bb3ae09..d8b803c59d 100644 --- a/products/ASC.People/Server/Api/UserController.cs +++ b/products/ASC.People/Server/Api/UserController.cs @@ -437,7 +437,7 @@ public async Task ChangeUserPassword(MemberBaseByIdRequestDto i return null; } - if (_userManager.IsSystemUser(user.Id)) + if (_userManager.IsSystemUser(user.Id) || user.Status == EmployeeStatus.Terminated) { throw new SecurityException(); }