BookStack\Http\Controllers\Controller::preventAccessForDemoUsers PHP Метод

preventAccessForDemoUsers() защищенный Метод

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();
        }
    }