mirror of
https://github.com/go-gitea/gitea
synced 2025-07-22 18:28:37 +00:00
EnableUnit() -> UnitEnabled() (#2242)
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user