diff --git a/src/SecuredLinksPresenterTrait.php b/src/SecuredLinksPresenterTrait.php index eaab2a6..815b099 100644 --- a/src/SecuredLinksPresenterTrait.php +++ b/src/SecuredLinksPresenterTrait.php @@ -68,10 +68,7 @@ public function createSecuredLink(Component $component, string $link, string $de $method = $component->formatSignalMethod($signal); $signalReflection = $reflection->getMethod($method); - if (!$signalReflection->hasAnnotation('secured')) { - break; - } - if (method_exists($signalReflection, 'getAttributes') && count($signalReflection->getAttributes(Secured::class)) === 0) { + if (!($signalReflection->hasAnnotation('secured') || (method_exists($signalReflection, 'getAttributes') && count($signalReflection->getAttributes(Secured::class)) > 0))) { break; }