We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 01c1b54 commit 2f3543cCopy full SHA for 2f3543c
web/edit/web/index.php
@@ -150,8 +150,8 @@
150
}
151
152
153
- // Change template (admin only)
154
- 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']))) {
155
$v_template = escapeshellarg($_POST['v_template']);
156
exec (VESTA_CMD."v-change-web-domain-tpl ".$v_username." ".$v_domain." ".$v_template." 'no'", $output, $return_var);
157
check_return_code($return_var,$output);
0 commit comments