From 2f3543c3db77c4e0c890fe0239817de98036c207 Mon Sep 17 00:00:00 2001 From: myvesta <38690722+myvesta@users.noreply.github.com> Date: Sat, 2 Jun 2018 01:28:31 +0200 Subject: [PATCH] Allow user to change Web Template --- web/edit/web/index.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/edit/web/index.php b/web/edit/web/index.php index e934c1c8..85a278e9 100644 --- a/web/edit/web/index.php +++ b/web/edit/web/index.php @@ -150,8 +150,8 @@ if (!empty($_POST['save'])) { } } - // Change template (admin only) - if (($v_template != $_POST['v_template']) && ( $_SESSION['user'] == 'admin') && (empty($_SESSION['error_msg']))) { + // Change template + if (($v_template != $_POST['v_template']) && (empty($_SESSION['error_msg']))) { $v_template = escapeshellarg($_POST['v_template']); exec (VESTA_CMD."v-change-web-domain-tpl ".$v_username." ".$v_domain." ".$v_template." 'no'", $output, $return_var); check_return_code($return_var,$output);