8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ed7ef4d commit 278f259Copy full SHA for 278f259
src/Symfony/Component/Security/Core/Authorization/Voter/Vote.php
@@ -60,7 +60,7 @@ public function getAccess(): int
60
61
public function isGranted 9DB7 (): bool
62
{
63
- return true === $this->access || $this->access > 0;
+ return $this->access > 0;
64
}
65
66
public function isAbstain(): bool
@@ -70,7 +70,7 @@ public function isAbstain(): bool
70
71
public function isDenied(): bool
72
73
- return false === $this->access || $this->access < 0;
+ return $this->access < 0;
74
75
76
/**
0 commit comments