Skip to content

Commit 3fc42ad

Browse files
guillep2klafriks
authored andcommitted
Allow registration when button is hidden (#8238)
1 parent 4b9786b commit 3fc42ad

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
@@ -1008,7 +1008,7 @@ func SignUpPost(ctx *context.Context, cpt *captcha.Captcha, form auth.RegisterFo
10081008
ctx.Data["RecaptchaSitekey"] = setting.Service.RecaptchaSitekey
10091009

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

0 commit comments

Comments
 (0)