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
// we have to call the update_client_templates function
@@ -222,6 +223,7 @@ function apply_client_templates($clientId) {
222
223
* Write all back to the database
223
224
*/
224
225
$update = '';
226
+
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.
Copy file name to clipboardExpand all lines: interface/lib/classes/custom_datasource.inc.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -32,7 +32,7 @@ class custom_datasource {
32
32
33
33
functionmaster_templates($field, $record) {
34
34
global$app, $conf;
35
-
$records = $app->db->queryAllRecords("SELECT template_id,template_name FROM client_template WHERE template_type ='m'");
35
+
$records = $app->db->queryAllRecords("SELECT template_id,template_name FROM client_template WHERE template_type ='m' and ".$app->tform->getAuthSQL('r'));
0 commit comments