From 6352781154e6c7f5395b0527ee1d1780f996166d Mon Sep 17 00:00:00 2001
From: mcramer <m.cramer@pixcept.de>
Date: Mon, 25 Mar 2013 12:48:48 -0400
Subject: [PATCH] - Implemented New global option to grant reseller users access to the options (advanced) tab in web domains and vhost subdomains
---
interface/web/sites/form/web_domain.tform.php | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/interface/web/sites/form/web_domain.tform.php b/interface/web/sites/form/web_domain.tform.php
index fcbd8d8..a55fe4d 100644
--- a/interface/web/sites/form/web_domain.tform.php
+++ b/interface/web/sites/form/web_domain.tform.php
@@ -72,6 +72,9 @@
if($client['limit_ssl'] != 'y') $ssl_available = false;
}
+$app->uses('getconf');
+$web_config = $app->getconf->get_global_config('sites');
+
$form["tabs"]['domain'] = array (
'title' => "Domain",
'width' => 100,
@@ -524,7 +527,8 @@
// }
-if($_SESSION["s"]["user"]["typ"] == 'admin') {
+if($_SESSION["s"]["user"]["typ"] == 'admin'
+ || ($web_config['reseller_can_use_options'] == 'y' && $app->auth->has_clients($_SESSION['s']['user']['userid']))) {
$form["tabs"]['advanced'] = array (
'title' => "Options",
--
Gitblit v1.9.1