diff --git a/routers/user/home.go b/routers/user/home.go index 952f5cdb3..2b59b971a 100644 --- a/routers/user/home.go +++ b/routers/user/home.go @@ -551,8 +551,8 @@ func Issues(ctx *context.Context) { ctx.ServerError("GetUserRepoPermission", fmt.Errorf("[%d]%v", repoID, err)) return } - if !perm.CanRead(models.UnitTypeIssues) { - log.Error("User created Issues in Repository which they no longer have access to: [%d]", repoID) + if !perm.CanRead(unitType) { + log.Debug("User created Issues in Repository which they no longer have access to: [%d]", repoID) } } }