We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8b94022 commit 98a76f2Copy full SHA for 98a76f2
inc/fields/dropdownfield.class.php
@@ -123,7 +123,12 @@ public function displayField($canEdit = true) {
123
break;
124
125
default:
126
- if (in_array($itemtype, $CFG_GLPI['ticket_types'])) {
+ $assignableToTicket = in_array($itemtype, $CFG_GLPI['ticket_types']);
127
+ if (Session::getLoginUserID()) {
128
+ // Restrict assignable types to current profile's settings
129
+ $assignableToTicket = CommonITILObject::isPossibleToAssignType($itemtype);
130
+ }
131
+ if ($assignableToTicket) {
132
$userFk = User::getForeignKeyField();
133
$groupFk = Group::getForeignKeyField();
134
$canViewAllHardware = Session::haveRight('helpdesk_hardware', pow(2, Ticket::HELPDESK_ALL_HARDWARE));
0 commit comments