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:
@@ -59,8 +59,8 @@ var (
|
||||
|
||||
// MustEnableIssues check if repository enable internal issues
|
||||
func MustEnableIssues(ctx *context.Context) {
|
||||
if !ctx.Repo.Repository.EnableUnit(models.UnitTypeIssues) &&
|
||||
!ctx.Repo.Repository.EnableUnit(models.UnitTypeExternalTracker) {
|
||||
if !ctx.Repo.Repository.UnitEnabled(models.UnitTypeIssues) &&
|
||||
!ctx.Repo.Repository.UnitEnabled(models.UnitTypeExternalTracker) {
|
||||
ctx.Handle(404, "MustEnableIssues", nil)
|
||||
return
|
||||
}
|
||||
|
Reference in New Issue
Block a user