Explorar o código

Only include if the domain_setting_edit permission has been assigned to the current user.

markjcrane %!s(int64=10) %!d(string=hai) anos
pai
achega
f94181f1ce
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      core/domain_settings/domain_edit.php

+ 1 - 1
core/domain_settings/domain_edit.php

@@ -706,7 +706,7 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) {
 
 	echo "</form>";
 
-	if ($action == "update") {
+	if (permission_exists('domain_setting_edit') && $action == "update") {
 		require "domain_settings.php";
 	}