diff --git a/inc/show_search_form.inc.php b/inc/show_search_form.inc.php index 9962b853..60dd6355 100644 --- a/inc/show_search_form.inc.php +++ b/inc/show_search_form.inc.php @@ -52,6 +52,7 @@ if (!isset($date_input)) { /* Can view tickets that are unassigned or assigned to others? */ $can_view_ass_others = hesk_checkPermission('can_view_ass_others', 0); $can_view_unassigned = hesk_checkPermission('can_view_unassigned', 0); +$can_view_ass_by = hesk_checkPermission('can_view_ass_by', 0); /* Category options */ $category_options = ''; @@ -71,7 +72,7 @@ if (isset($hesk_settings['categories']) && count($hesk_settings['categories'])) } /* List of staff */ -if ($can_view_ass_others && !isset($admins)) { +if (($can_view_ass_others || $can_view_ass_by) && ! isset($admins)) { $admins = array(); $res2 = hesk_dbQuery("SELECT `id`,`name` FROM `" . hesk_dbEscape($hesk_settings['db_pfix']) . "users` ORDER BY `name` ASC"); while ($row = hesk_dbFetchAssoc($res2)) { @@ -134,7 +135,7 @@ $more2 = empty($_GET['more2']) ? 0 : 1;
- @@ -208,7 +209,7 @@ $more2 = empty($_GET['more2']) ? 0 : 1;