mirror of
https://github.com/flarum/core.git
synced 2025-05-06 15:35:38 +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 (Auth::guest()) {
|
||||||
if (! isset($current)) {
|
if (! isset($current)) {
|
||||||
// $current = new Guest;
|
$current = new Guest;
|
||||||
$current = User::find(1);
|
|
||||||
}
|
}
|
||||||
return $current;
|
return $current;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user