diff --git a/src/Routing.php b/src/Routing.php index 27ab05f..22eecc2 100644 --- a/src/Routing.php +++ b/src/Routing.php @@ -96,7 +96,7 @@ class Routing { return $redirect; } - if ( $forbidden = $this->security->taxus($class, $method, $object->user) ) { + if ( $forbidden = $this->security->taxus($class, $method, $object->user ?? null) ) { return $forbidden; }