]> source.dussan.org Git - gitea.git/commitdiff
Allow registration when button is hidden (#8238)
authorguillep2k <18600385+guillep2k@users.noreply.github.com>
Thu, 19 Sep 2019 08:58:47 +0000 (05:58 -0300)
committerLauris BH <lauris@nix.lv>
Thu, 19 Sep 2019 08:58:47 +0000 (11:58 +0300)
routers/user/auth.go

index 8203593739e8c7d4546ece4d28dae6a101607884..94d27302c3a94842b74137bc216c0117095b3c32 100644 (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
        }