Skip to content

Commit 1414802

Browse files
author
Marius Cramer
committed
- added access check to limit template select box
1 parent d6bec7a commit 1414802

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

interface/web/client/client_edit.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ function onShowEnd() {
125125

126126
global $app;
127127

128-
$sql = "SELECT template_id,template_name FROM client_template WHERE template_type = 'a' ORDER BY template_name ASC";
128+
$sql = "SELECT template_id,template_name FROM client_template WHERE template_type = 'a' and ".$app->tform->getAuthSQL('r')." ORDER BY template_name ASC";
129129
$tpls = $app->db->queryAllRecords($sql);
130130
$option = '';
131131
$tpl = array();

0 commit comments

Comments
 (0)