Skip to content

Commit

Permalink
Fix non-logged-in bug #2
Browse files Browse the repository at this point in the history
  • Loading branch information
bvdputte committed Jan 19, 2022
1 parent a0e1a76 commit c2df894
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions classes/Logbook.php
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down

0 comments on commit c2df894

Please sign in to comment.