mirror of
https://github.com/flarum/core.git
synced 2025-05-04 22:55:33 +02:00
Make default user a guest
The way it should be. Now maybe I’ll be forced to get a move-on with auth :D
This commit is contained in:
parent
bf0ea864e4
commit
9cec5b8f41
@ -103,8 +103,7 @@ class User extends Entity /*implements UserInterface, RemindableInterface*/
|
||||
|
||||
if (Auth::guest()) {
|
||||
if (! isset($current)) {
|
||||
// $current = new Guest;
|
||||
$current = User::find(1);
|
||||
$current = new Guest;
|
||||
}
|
||||
return $current;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user