mirror of
https://github.com/tuxis-ie/nsedit.git
synced 2025-04-19 20:09:14 +03:00
Fix zoneadd logic
This commit is contained in:
parent
7ea11b16d4
commit
c5ae169b2d
1 changed files with 1 additions and 1 deletions
|
@ -227,7 +227,7 @@ if ($action == "list" or $action== "listslaves") {
|
|||
usort($return, "zonesort");
|
||||
jtable_respond($return);
|
||||
} elseif ($action == "create") {
|
||||
if (is_adminuser() !== TRUE or ($allowzoneadd !== TRUE)) {
|
||||
if (is_adminuser() !== TRUE and $allowzoneadd !== TRUE) {
|
||||
jtable_respond(null, 'error', "You are not allowed to add zones");
|
||||
}
|
||||
if (_valid_label($_POST['name']) === FALSE) {
|
||||
|
|
Loading…
Add table
Reference in a new issue