From cc63df7d810cbfc510443b4996d8257e47d1b04c Mon Sep 17 00:00:00 2001 From: Mark Crane Date: Mon, 23 Dec 2013 21:13:45 +0000 Subject: [PATCH] Check if provisioning has been enabled. It can needs to be enabled globally in advanced -> default settings or per domain in advanced -> domains. category: provision subcategory: enabled type: text value: true enabled: true --- app/provision/index.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/provision/index.php b/app/provision/index.php index b41953a066..3fb50c6cb5 100644 --- a/app/provision/index.php +++ b/app/provision/index.php @@ -54,6 +54,12 @@ include "resources/classes/template.php"; $provision[$key] = $value; } +//check if provisioning has been enabled + if ($provision["enabled"] != "true") { + echo "access denied"; + exit; + } + //if password was defined in the system -> variables page then require the password. if (strlen($provision['password']) > 0) { //deny access if the password doesn't match