Web:Client:Accounts: disable change user type for disabled users

This commit is contained in:
Timofey Boyko 2023-03-01 14:58:28 +03:00
parent f04408ace1
commit b97ed4a10e

View File

@ -38,7 +38,7 @@ class AccessRightsStore {
const { id: userId, statusType, role } = user;
if (userId === id || statusType === EmployeeStatus.Disabled) return false;
if (userId === id || statusType === "disabled") return false;
switch (role) {
case "owner":