BookStack\Http\Controllers\Auth\RegisterController::checkRegistrationAllowed PHP Method

checkRegistrationAllowed() protected method

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