diff --git a/src/mibew/libs/classes/Mibew/Controller/Operator/ManagementController.php b/src/mibew/libs/classes/Mibew/Controller/Operator/ManagementController.php index ad304e8e..5d83fe3e 100644 --- a/src/mibew/libs/classes/Mibew/Controller/Operator/ManagementController.php +++ b/src/mibew/libs/classes/Mibew/Controller/Operator/ManagementController.php @@ -114,8 +114,6 @@ class ManagementController extends AbstractController $operator = operator_by_id($operator_id); if (!$operator) { throw new NotFoundException('The operator is not found.'); - } elseif ($operator['vclogin'] == 'admin') { - $errors[] = getlocal("Cannot remove operator \"admin\"."); } } @@ -155,8 +153,6 @@ class ManagementController extends AbstractController $operator = operator_by_id($operator_id); if (!$operator) { throw new NotFoundException('The operator is not found.'); - } elseif ($operator['vclogin'] == 'admin') { - $errors[] = getlocal('Cannot disable "admin".'); } }