Skip to content

Commit e00af17

Browse files
committed
MOVE
1 parent 8e6ee8e commit e00af17

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

routers/web/user/setting/notifications.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ func Notifications(ctx *context.Context) {
2828
ctx.Data["Title"] = ctx.Tr("notifications")
2929
ctx.Data["PageIsSettingsNotifications"] = true
3030
ctx.Data["EmailNotificationsPreference"] = ctx.Doer.EmailNotificationsPreference
31-
ctx.Data["EnableNotifyMail"] = setting.Service.EnableNotifyMail
3231

3332
ctx.HTML(http.StatusOK, tplSettingsNotifications)
3433
}

routers/web/web.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -686,7 +686,7 @@ func registerWebRoutes(m *web.Router) {
686686
m.Get("", user_setting.BlockedUsers)
687687
m.Post("", web.Bind(forms.BlockUserForm{}), user_setting.BlockedUsersPost)
688688
})
689-
}, reqSignIn, ctxDataSet("PageIsUserSettings", true, "EnablePackages", setting.Packages.Enabled))
689+
}, reqSignIn, ctxDataSet("PageIsUserSettings", true, "EnablePackages", setting.Packages.Enabled, "EnableNotifyMail", setting.Service.EnableNotifyMail))
690690

691691
m.Group("/user", func() {
692692
m.Get("/activate", auth.Activate)

0 commit comments

Comments
 (0)