Skip to content

Commit c2cd684

Browse files
Merge pull request #1249 from csrdelft/fix-route-geen-auth
Voeg #[IsGranted] toe aan AccessControlEventListener
2 parents 81957f4 + 34e0152 commit c2cd684

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/events/AccessControlEventListener.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ public function onKernelController(ControllerEvent $event)
8787
$this->annotations->getMethodAnnotation(
8888
$reflectionMethod,
8989
IsGranted::class
90-
)
90+
) || !empty($reflectionMethod->getAttributes(IsGranted::class))
9191
) {
9292
return;
9393
}

0 commit comments

Comments
 (0)