mirror of
https://github.com/Mibew/mibew.git
synced 2025-01-31 05:20:30 +03:00
Make possible to remove first user (Fixes #210)
This commit is contained in:
parent
bc39c22c29
commit
3ec1610fff
@ -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".');
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user