Hide the registration button depending on the setting
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user