0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2024-11-25 07:22:51 +01:00

Allow registration when button is hidden (#8237)

This commit is contained in:
guillep2k 2019-09-19 11:40:33 -03:00 committed by Lunny Xiao
parent 08e0d4b114
commit 8a0379d68a

View file

@ -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
}