]> BookStack Code Mirror - bookstack/blobdiff - app/Http/Middleware/Authenticate.php
Update maintenance.php
[bookstack] / app / Http / Middleware / Authenticate.php
index c9b2726e8c4eca4f9148f7567a035433bf216879..1a33843675a97266095cd6c2cb96918369652c9d 100644 (file)
@@ -37,7 +37,7 @@ class Authenticate
             }
         }
 
-        if ($this->auth->guest() && !setting('app-public')) {
+        if (!hasAppAccess()) {
             if ($request->ajax()) {
                 return response('Unauthorized.', 401);
             } else {