We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent af9a6f8 commit 46efb33Copy full SHA for 46efb33
inc/field/dropdownfield.class.php
@@ -248,7 +248,7 @@ public function buildParams($rand = null) {
248
$canViewGroupHardware = Session::haveRight('show_group_hardware', '1');
249
$groups = [];
250
if ($canViewGroupHardware) {
251
- $groups = $this->getMyGroups(Session::getLoginUserID());
+ $groups = $_SESSION['glpigroups'];
252
}
253
if ($DB->fieldExists($itemtype::getTable(), $userFk)
254
&& !$canViewAllHardware && $canViewMyHardware
0 commit comments