X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/2724b2867b753a8d486d14dd491e7d14db5983d2..refs/pull/5280/head:/app/Settings/SettingService.php diff --git a/app/Settings/SettingService.php b/app/Settings/SettingService.php index 9bcd6c7ec..31debdaea 100644 --- a/app/Settings/SettingService.php +++ b/app/Settings/SettingService.php @@ -2,7 +2,7 @@ namespace BookStack\Settings; -use BookStack\Auth\User; +use BookStack\Users\Models\User; /** * Class SettingService @@ -47,7 +47,7 @@ class SettingService $default = config('setting-defaults.user.' . $key, false); } - if ($user->isDefault()) { + if ($user->isGuest()) { return $this->getFromSession($key, $default); } @@ -206,7 +206,7 @@ class SettingService */ public function putUser(User $user, string $key, string $value): bool { - if ($user->isDefault()) { + if ($user->isGuest()) { session()->put($key, $value); return true;