From c5ae169b2d9f85c27a3e1543a6661e02a2a697cc Mon Sep 17 00:00:00 2001 From: Mark Schouten Date: Wed, 1 Oct 2014 11:38:40 +0200 Subject: [PATCH] Fix zoneadd logic --- zones.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zones.php b/zones.php index 290028f..9ef30d7 100644 --- a/zones.php +++ b/zones.php @@ -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) {