Skip to content

Commit 8a0379d

Browse files
guillep2klunny
authored andcommitted
Allow registration when button is hidden (#8237)
1 parent 08e0d4b commit 8a0379d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

routers/user/auth.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1009,7 +1009,7 @@ func SignUpPost(ctx *context.Context, cpt *captcha.Captcha, form auth.RegisterFo
10091009
ctx.Data["RecaptchaSitekey"] = setting.Service.RecaptchaSitekey
10101010

10111011
//Permission denied if DisableRegistration or AllowOnlyExternalRegistration options are true
1012-
if !setting.Service.ShowRegistrationButton {
1012+
if setting.Service.DisableRegistration {
10131013
ctx.Error(403)
10141014
return
10151015
}

0 commit comments

Comments
 (0)