]> BookStack Code Mirror - bookstack/blobdiff - app/Services/PermissionService.php
Add Carbon localization support
[bookstack] / app / Services / PermissionService.php
index 341a69edb624a4967b86c432c66b044a0ae896aa..bb78f0b0a2c7481cdd9be119d6d2436eb6e16c90 100644 (file)
@@ -614,7 +614,7 @@ class PermissionService
     private function currentUser()
     {
         if ($this->currentUserModel === false) {
-            $this->currentUserModel = auth()->user() ? auth()->user() : new User();
+            $this->currentUserModel = user();
         }
 
         return $this->currentUserModel;