mirror of
https://github.com/flarum/framework.git
synced 2025-01-19 18:12:59 +08: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
0b2f645d2a
commit
6751cb2bea
|
@ -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…
Reference in New Issue
Block a user