Add a permission check to core/domain_settings/domain_edit.php.

This commit is contained in:
markjcrane
2015-07-25 22:52:57 -06:00
parent 82a61ed614
commit e6ff9576ce
2 changed files with 3 additions and 2 deletions
+3 -1
View File
@@ -565,7 +565,9 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) {
}
//upgrade the domains
require_once "core/upgrade/upgrade_domains.php";
if (permission_exists('upgrade_apps') || if_group("superadmin")) {
require_once "core/upgrade/upgrade_domains.php";
}
//clear the domains session array to update it
unset($_SESSION["domains"]);