BookStack\Http\Controllers\Controller::preventAccessForDemoUsers PHP Method

preventAccessForDemoUsers() protected method

Stops the application and shows a permission error if the application is in demo mode.
    protected function preventAccessForDemoUsers()
    {
        if (config('app.env') === 'demo') {
            $this->showPermissionError();
        }
    }