BookStack\Http\Controllers\Auth\RegisterController::checkRegistrationAllowed PHP Метод

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

Check whether or not registrations are allowed in the app settings.
protected checkRegistrationAllowed ( )
    protected function checkRegistrationAllowed()
    {
        if (!setting('registration-enabled')) {
            throw new UserRegistrationException('Registrations are currently disabled.', '/login');
        }
    }