]> BookStack Code Mirror - bookstack/blobdiff - app/Http/Middleware/ApiAuthenticate.php
Updated minimum php version from 7.3 to 7.4
[bookstack] / app / Http / Middleware / ApiAuthenticate.php
index 508efa02801c5e035dfd27bf00a3d8709a67e876..5d621ac119a22abf16c103d4cfc40dc617fcb5e8 100644 (file)
@@ -50,11 +50,12 @@ class ApiAuthenticate
     }
 
     /**
-     * Check if the active session user has API access
+     * Check if the active session user has API access.
      */
     protected function sessionUserHasApiAccess(): bool
     {
         $hasApiPermission = user()->can('access-api');
+
         return $hasApiPermission && hasAppAccess();
     }