fix: Public access to front also applies to tags

This commit is contained in:
Attila Kerekes 2022-12-15 20:17:08 +01:00
parent 3c9f361f5f
commit aa886e4f77
2 changed files with 2 additions and 4 deletions

View file

@ -33,9 +33,7 @@ class CheckAllowed
}
// Public access to frontpage
if ($route == 'dash') {
//print_r(User::all());
//die("here".var_dump($current_user->password));
if ($route === 'dash' || $route === 'tags.show') {
if ((bool)$current_user->public_front === true) {
return $next($request);
}

File diff suppressed because one or more lines are too long