From 3ec1610fff7935419ef9cb79b9a3ef4581d55d9c Mon Sep 17 00:00:00 2001 From: "Fedor A. Fetisov" Date: Sun, 12 Nov 2017 17:22:33 +0300 Subject: [PATCH] Make possible to remove first user (Fixes #210) --- .../Mibew/Controller/Operator/ManagementController.php | 4 ---- 1 file changed, 4 deletions(-) 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".'); } }