diff --git a/src/Security/SecurityVoter.php b/src/Security/SecurityVoter.php index 0edb19660e..e22eea05ea 100644 --- a/src/Security/SecurityVoter.php +++ b/src/Security/SecurityVoter.php @@ -27,6 +27,11 @@ public function __construct(AuthorizationCheckerInterface $authorizationChecker, } protected function supports(string $permissionName, mixed $subject): bool + { + return $this->supportsAttribute($permissionName); + } + + public function supportsAttribute(string $permissionName): bool { return Permission::exists($permissionName); }