From 34c6e9f623fc5fed0cc6d3ff27fd715c7db3be2b Mon Sep 17 00:00:00 2001 From: Guillermo Prandi Date: Wed, 18 Sep 2019 20:55:41 -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 11d642b147ed..dedb9c7b0d56 100644 --- a/routers/user/auth.go +++ b/routers/user/auth.go @@ -1009,7 +1009,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 }