Skip to content

Commit

Permalink
handle inverted all profiles
Browse files Browse the repository at this point in the history
  • Loading branch information
cconard96 committed Jan 31, 2025
1 parent f59b42a commit e09ec6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Glpi/Asset/CustomFieldOption/ProfileRestrictOption.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ public function getValue(): bool

// Handle special 'All' value
if (in_array(-1, $value, true)) {
return true;
return !$inverted;
}

$active_profile = $_SESSION['glpiactiveprofile']['id'] ?? null;
Expand Down

0 comments on commit e09ec6c

Please sign in to comment.