Skip to content

Commit ed927d3

Browse files
committed
fix: gate policy visibility on definition.isUserEligible()
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
1 parent c247670 commit ed927d3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/Service/Policy/Runtime/DefaultPolicyResolver.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ private function resolveCore(
5353
$currentSourceScope = 'system';
5454
$currentBlockedBy = null;
5555
$canOverrideBelow = false;
56-
$visible = true;
56+
$visible = $definition->isUserEligible($context);
5757

5858
if ($systemLayer !== null) {
5959
[$currentValue, $currentSourceScope, $canOverrideBelow, $visible] = $this->applyLayer(

0 commit comments

Comments
 (0)