]> BookStack Code Mirror - bookstack/blobdiff - app/Http/Middleware/Authenticate.php
Opensearch: Fixed XML declaration when php short tags enabled
[bookstack] / app / Http / Middleware / Authenticate.php
index a320291122b6f632b0bc36a8e96d15e42472a5f8..6a5c6e3542e0ec80c6f7205b80a48fc12ef2aa50 100644 (file)
@@ -12,7 +12,7 @@ class Authenticate
      */
     public function handle(Request $request, Closure $next)
     {
-        if (!hasAppAccess()) {
+        if (!user()->hasAppAccess()) {
             if ($request->ajax()) {
                 return response('Unauthorized.', 401);
             }