Web:Client:Accounts: disable change user type for disabled users
This commit is contained in:
parent
f04408ace1
commit
b97ed4a10e
@ -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":
|
||||
|
Loading…
Reference in New Issue
Block a user