From 3fc42add160079d3c7a343ce4930436acea2af79 Mon Sep 17 00:00:00 2001 From: guillep2k <18600385+guillep2k@users.noreply.github.com> Date: Thu, 19 Sep 2019 05:58:47 -0300 Subject: [PATCH] Allow registration when button is hidden (#8238) --- routers/user/auth.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routers/user/auth.go b/routers/user/auth.go index 820359373..94d27302c 100644 --- a/routers/user/auth.go +++ b/routers/user/auth.go @@ -1008,7 +1008,7 @@ func SignUpPost(ctx *context.Context, cpt *captcha.Captcha, form auth.RegisterFo ctx.Data["RecaptchaSitekey"] = setting.Service.RecaptchaSitekey //Permission denied if DisableRegistration or AllowOnlyExternalRegistration options are true - if !setting.Service.ShowRegistrationButton { + if setting.Service.DisableRegistration { ctx.Error(403) return }