Skip to content

Commit 2575f1e

Browse files
committed
fix unit check
1 parent 804d0a7 commit 2575f1e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

routers/routes/routes.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -585,7 +585,7 @@ func RegisterRoutes(m *macaron.Macaron) {
585585
m.Post("/delete/*", reqSignIn, reqRepoWriter, repo.DeleteBranchPost)
586586
}, repo.MustBeNotBare, func(c *context.Context) {
587587
c.Data["PageIsViewFiles"] = true
588-
})
588+
}, context.CheckUnit(models.UnitTypeCode))
589589

590590
m.Group("/wiki", func() {
591591
m.Get("/?:page", repo.Uncyclo)

0 commit comments

Comments
 (0)