mirror of
https://github.com/go-gitea/gitea.git
synced 2025-06-21 21:48:00 +02:00
Add units concept for modulable functions of a repository (#742)
* Add units concept for modulable functions of a repository * remove unused comment codes & fix lints and tests * remove unused comment codes * use struct config instead of map * fix lint * rm wrong files * fix tests
This commit is contained in:
@ -205,7 +205,7 @@ func orgAssignment(args ...bool) macaron.Handler {
|
||||
}
|
||||
|
||||
func mustEnableIssues(ctx *context.APIContext) {
|
||||
if !ctx.Repo.Repository.EnableIssues || ctx.Repo.Repository.EnableExternalTracker {
|
||||
if !ctx.Repo.Repository.EnableUnit(models.UnitTypeIssues) {
|
||||
ctx.Status(404)
|
||||
return
|
||||
}
|
||||
|
Reference in New Issue
Block a user