aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorguillep2k2019-09-19 05:58:47 -0300
committerLauris BH2019-09-19 11:58:47 +0300
commit3fc42add160079d3c7a343ce4930436acea2af79 (patch)
tree141f6c5cda729e2a23a179f29df229056b77110a
parent4b9786ba6214287154b202121bf8548a25809df3 (diff)
Allow registration when button is hidden (#8238)
-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 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
}