From 3aae574634dcfd4a0b7f5e53373540f6a50eac0d Mon Sep 17 00:00:00 2001 From: Guillermo Prandi Date: Wed, 18 Sep 2019 23:28:37 -0300 Subject: [PATCH] Allow registration when button is hidden --- 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 8203593739e8c..94d27302c3a94 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 }