EnableUnit() -> UnitEnabled() (#2242)

This commit is contained in:
Ethan Koenig authored and Lauris BH committed 2017-08-02 11:46:54 +03:00
1 parent 539d9f4c30
commit f29458bd3a
9 files changed
+29 -36

No files matched your search

+1 -1
View File
@@ -235,7 +235,7 @@ func orgAssignment(args ...bool) macaron.Handler {
}
func mustEnableIssues(ctx *context.APIContext) {
if !ctx.Repo.Repository.EnableUnit(models.UnitTypeIssues) {
if !ctx.Repo.Repository.UnitEnabled(models.UnitTypeIssues) {
ctx.Status(404)
return
}