summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorguillep2k <18600385+guillep2k@users.noreply.github.com>2019-09-19 11:40:33 -0300
committerLunny Xiao <xiaolunwen@gmail.com>2019-09-19 22:40:33 +0800
commit8a0379d68aa723be9cf1b304068e6b0d098b8a6d (patch)
tree9e57764f732176e3bc759ba2e93cc57e6a757fc3
parent08e0d4b114757648275d9fc0ce4f3aa02933a450 (diff)
downloadgitea-8a0379d68aa723be9cf1b304068e6b0d098b8a6d.tar.gz
gitea-8a0379d68aa723be9cf1b304068e6b0d098b8a6d.zip
Allow registration when button is hidden (#8237)
-rw-r--r--routers/user/auth.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/user/auth.go b/routers/user/auth.go
index 11d642b147..dedb9c7b0d 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
}