Skip to content

Commit

Permalink
fix(dropdownfield, glpiselectfield): group restriction
Browse files Browse the repository at this point in the history
  • Loading branch information
btry committed Apr 5, 2024
1 parent e468aa3 commit 6eb28d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inc/field/dropdownfield.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ public function buildParams($rand = null) {
$canViewGroupHardware = Session::haveRight('show_group_hardware', '1');
$groups = [];
if ($canViewGroupHardware) {
$groups = $this->getMyGroups(Session::getLoginUserID());
$groups = $_SESSION['glpigroups'];
}
if ($DB->fieldExists($itemtype::getTable(), $userFk)
&& !$canViewAllHardware && $canViewMyHardware
Expand Down

0 comments on commit 6eb28d5

Please sign in to comment.