Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 71d7744 commit 46b15e0Copy full SHA for 46b15e0
1 file changed
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