]> BookStack Code Mirror - bookstack/blobdiff - app/Http/Controllers/Controller.php
Update PageRepo.php
[bookstack] / app / Http / Controllers / Controller.php
index ca022f7ca716c3896e04ed6fc4f4fa005927bea0..ab37a44a1d7223c816c9ca9aade22b7f96ac193c 100644 (file)
@@ -48,7 +48,7 @@ abstract class Controller extends BaseController
      */
     protected function preventAccessForDemoUsers()
     {
-        if (env('APP_ENV', 'production') === 'demo') $this->showPermissionError();
+        if (config('app.env') === 'demo') $this->showPermissionError();
     }
 
     /**