diff --git a/Matcher/Voter/DefaultSiteAccessVoter.php b/Matcher/Voter/DefaultSiteAccessVoter.php index c3887da..8d5c8d8 100644 --- a/Matcher/Voter/DefaultSiteAccessVoter.php +++ b/Matcher/Voter/DefaultSiteAccessVoter.php @@ -31,8 +31,11 @@ public function __construct($defaultSiteAccess) */ public function vote($siteAccess, array $routeConfig) { - // Siteaccess is allowed if it is a default one and default is allowed - if ($siteAccess === $this->defaultSiteAccess && in_array(self::DEFAULT_KEY, $routeConfig)) { + if ($siteAccess !== $this->defaultSiteAccess) { + return VoterInterface::ABSTAIN; + } + + if (in_array(static::DEFAULT_KEY, $routeConfig)) { return true; }