1
1
mirror of https://github.com/go-gitea/gitea synced 2024-06-02 17:35:49 +00:00

Allow registration when button is hidden (#8238)

This commit is contained in:
guillep2k 2019-09-19 05:58:47 -03:00 committed by Lauris BH
parent 4b9786ba62
commit 3fc42add16

View File

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