8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 71d7744 commit 46b15e0Copy full SHA for 46b15e0
src/Symfony/Component/Security/Core/Authorization/Voter/Vote.php
@@ -60,7 +60,7 @@ public function getAccess(): int
60
61
public function isGranted(): 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