mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-06-17 11:59:30 +00:00
EnableUnit() -> UnitEnabled() (#2242)
This commit is contained in:
parent
539d9f4c30
commit
f29458bd3a
9 changed files with 29 additions and 36 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue