Hello,
If some of you are in real need you can go ahead and modify the source code. I will provide some instructions on how to do this. You will have to edit the components/com_rstickets/page/add_ticket.php file (around line 92). Basically just add a
if statement after the existing
foreach, for example:
if($_SESSION['RST_User']['UserId'] == '62' && $department['DepartmentName'] != 'Billing')
Explanations:
$_SESSION['RST_User']['UserId'] == '62' - verifies if the current logged in user id is 62. Here you will have to use the actual user id of the user that you wish to restrict the department list.
$department['DepartmentName'] != 'Billing' - verifies if the current department name is 'Billing'. If it is anything but 'Billing' the department will be added to the dropdown, thus resulting in a filtered list of departments.
The example can be used to a more general case... but this should provide a good starting point.