Fix zoneadd logic

This commit is contained in:
Mark Schouten 2014-10-01 11:38:40 +02:00
parent 7ea11b16d4
commit c5ae169b2d

View file

@ -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) {