You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: interface/lib/classes/auth.inc.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -50,7 +50,7 @@ public function has_clients($userid) {
50
50
51
51
$userid = $app->functions->intval($userid);
52
52
$client = $app->db->queryOneRecord("SELECT client.limit_client FROM sys_user, client WHERE sys_user.userid = $userid AND sys_user.client_id = client.client_id");
@@ -160,6 +160,15 @@ function apply_client_templates($clientId) {
160
160
if ($limits[$k] < 1) $limits[$k] = 1;
161
161
break;
162
162
163
+
case'default_mailserver':
164
+
case'default_webserver':
165
+
case'default_dnsserver':
166
+
case'default_slave_dnsserver':
167
+
case'default_dbserver':
168
+
/* additional templates don't override default server from main template */
169
+
if ($limits[$k] == 0) $limits[$k] = $v;
170
+
break;
171
+
163
172
default:
164
173
if ($limits[$k] > -1){
165
174
if ($v == -1){
@@ -225,7 +234,10 @@ function apply_client_templates($clientId) {
225
234
$update = '';
226
235
if(!$is_reseller) unset($limits['limit_client']); // Only Resellers may have limit_client set in template to ensure that we do not convert a client to reseller accidently.
0 commit comments