summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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
}