Skip to content

Commit 9a27599

Browse files
committed
getAuthSQL expects a string, lookup groupid of the client
1 parent 74efda9 commit 9a27599

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

interface/web/dashboard/dashlets/limits.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,8 @@ public function _get_limit_usage($limit, $limit_to_client_id)
202202
if ($limit['db_where'] != '') {
203203
$sql .= $limit['db_where']." AND ";
204204
}
205-
$sql .= $app->tform->getAuthSQL('r', '', $limit_to_client_id, array());
205+
$group = $app->db->queryOneRecord("SELECT `groupid` FROM `sys_group` WHERE client_id=?", $limit_to_client_id);
206+
$sql .= $app->tform->getAuthSQL('r', '', $limit_to_client_id, $group['groupid']);
206207
// TEST to show reseller data.
207208
//$sql .= $app->tform->getAuthSQL('r', '', 0, '3,28,39');
208209
//echo $sql;

0 commit comments

Comments
 (0)