]> BookStack Code Mirror - bookstack/blobdiff - app/Activity/Models/View.php
respective book and chapter structure added.
[bookstack] / app / Activity / Models / View.php
index b593a7d27be74209f746c32c335361f0ac538995..30ead11935ff38449a0eef3b2bf9cf6905180121 100644 (file)
@@ -41,7 +41,7 @@ class View extends Model
     public static function incrementFor(Viewable $viewable): int
     {
         $user = user();
-        if (is_null($user) || $user->isGuest()) {
+        if ($user->isGuest()) {
             return 0;
         }