From 3c65265871ce6d8305250ef870a751ebf47257ea Mon Sep 17 00:00:00 2001
From: Raphael Randschau <nicolai86@me.com>
Date: Thu, 5 Feb 2015 17:09:38 +0100
Subject: Hide the registration button depending on the setting

---
 routers/home.go | 1 +
 1 file changed, 1 insertion(+)

(limited to 'routers/home.go')

diff --git a/routers/home.go b/routers/home.go
index dd604ec7e3..24fc77e12a 100644
--- a/routers/home.go
+++ b/routers/home.go
@@ -41,6 +41,7 @@ func Home(ctx *middleware.Context) {
 		ctx.Data["OauthEnabled"] = true
 		ctx.Data["OauthService"] = setting.OauthService
 	}
+	ctx.Data["ShowRegistrationButton"] = setting.Service.ShowRegistrationButton
 
 	ctx.Data["PageIsHome"] = true
 	ctx.HTML(200, HOME)
-- 
cgit v1.2.3