diff --git a/classes/Logbook.php b/classes/Logbook.php index 79b6350..cfb0e1c 100644 --- a/classes/Logbook.php +++ b/classes/Logbook.php @@ -144,10 +144,7 @@ function ($line) use ($filter) { public static function hasAccess($user) { if ($user === null) { - throw new LogicException([ - 'key' => 'logbook.internal', - 'data' => ['code' => 'user-not-logged-in'] - ]); + return false; } return $user->role()->id() == 'admin';