summaryrefslogtreecommitdiffstats
path: root/routers/repo/issue_label.go
diff options
context:
space:
mode:
Diffstat (limited to 'routers/repo/issue_label.go')
-rw-r--r--routers/repo/issue_label.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/routers/repo/issue_label.go b/routers/repo/issue_label.go
index 966c2c1c53..cfbc2ae3e5 100644
--- a/routers/repo/issue_label.go
+++ b/routers/repo/issue_label.go
@@ -18,6 +18,10 @@ const (
// Labels render issue's labels page
func Labels(ctx *context.Context) {
+ MustEnableIssues(ctx)
+ if ctx.Written() {
+ return
+ }
ctx.Data["Title"] = ctx.Tr("repo.labels")
ctx.Data["PageIsIssueList"] = true
ctx.Data["PageIsLabels"] = true