- Fixed overridding of routes definition of multiple route with same names

- Corrected a bug withing the Pagination widget if there was only one page of result
This commit is contained in:
Dave Mc Nicoll committed 2024-10-17 18:20:02 +00:00
1 parent 708af80fa2
commit fd8fa7695e
4 files changed
+54 -18

No files matched your search

+1 -2
View File
@@ -60,12 +60,11 @@ return [
}
$routing->response = $redirect;
return;
}
}
if ( $securityHandler->isLocked($class, $method) && $container->has(Taxus::class) ) {
if ( $securityHandler->isLocked($class, $method) && $container->has(Taxus::class) && $container->has(SecurityHandler::class) ) {
if ( $forbidden = $container->get(SecurityHandler::class)->taxus($class, $method, $object->user ?? null) ) {
$routing->response = $forbidden;