From 8a0379d68aa723be9cf1b304068e6b0d098b8a6d Mon Sep 17 00:00:00 2001 From: guillep2k <18600385+guillep2k@users.noreply.github.com> Date: Thu, 19 Sep 2019 11:40:33 -0300 Subject: [PATCH] Allow registration when button is hidden (#8237) --- 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 11d642b14..dedb9c7b0 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 }