mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-08-14 02:28:03 -07:00
backend template only for admin
This commit is contained in:
parent
9754eb602f
commit
3d989fa74b
1 changed files with 1 additions and 1 deletions
|
@ -206,7 +206,7 @@ if (!empty($_POST['save'])) {
|
|||
}
|
||||
|
||||
// Change backend template
|
||||
if ((!empty($_SESSION['WEB_BACKEND'])) && ( $v_backend_template != $_POST['v_backend_template']) && (empty($_SESSION['error_msg']))) {
|
||||
if ((!empty($_SESSION['WEB_BACKEND'])) && ( $v_backend_template != $_POST['v_backend_template']) && ( $_SESSION['user'] == 'admin') && (empty($_SESSION['error_msg']))) {
|
||||
$v_backend_template = $_POST['v_backend_template'];
|
||||
exec (VESTA_CMD."v-change-web-domain-backend-tpl ".$v_username." ".$v_domain." ".escapeshellarg($v_backend_template), $output, $return_var);
|
||||
check_return_code($return_var,$output);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue