Skip to content

Commit 46efb33

Browse files
authored
fix(dropdownfield, glpiselectfield): group restriction (#3489)
1 parent af9a6f8 commit 46efb33

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

inc/field/dropdownfield.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ public function buildParams($rand = null) {
248248
$canViewGroupHardware = Session::haveRight('show_group_hardware', '1');
249249
$groups = [];
250250
if ($canViewGroupHardware) {
251-
$groups = $this->getMyGroups(Session::getLoginUserID());
251+
$groups = $_SESSION['glpigroups'];
252252
}
253253
if ($DB->fieldExists($itemtype::getTable(), $userFk)
254254
&& !$canViewAllHardware && $canViewMyHardware

0 commit comments

Comments
 (0)