Skip to content

Commit 2f3543c

Browse files
authored
Allow user to change Web Template
1 parent 01c1b54 commit 2f3543c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

web/edit/web/index.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,8 +150,8 @@
150150
}
151151
}
152152

153-
// Change template (admin only)
154-
if (($v_template != $_POST['v_template']) && ( $_SESSION['user'] == 'admin') && (empty($_SESSION['error_msg']))) {
153+
// Change template
154+
if (($v_template != $_POST['v_template']) && (empty($_SESSION['error_msg']))) {
155155
$v_template = escapeshellarg($_POST['v_template']);
156156
exec (VESTA_CMD."v-change-web-domain-tpl ".$v_username." ".$v_domain." ".$v_template." 'no'", $output, $return_var);
157157
check_return_code($return_var,$output);

0 commit comments

Comments
 (0)