]> BookStack Code Mirror - bookstack/blobdiff - app/Settings/SettingService.php
respective book and chapter structure added.
[bookstack] / app / Settings / SettingService.php
index 1c5cbdf5af37e12df8c77b9908b76126e90467b4..31debdaea85066835fa21e1f231e54b539c5c444 100644 (file)
@@ -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;