diff --git a/routers/web/repo/issue_pin.go b/routers/web/repo/issue_pin.go index 977744b52d..bbfeaee6e8 100644 --- a/routers/web/repo/issue_pin.go +++ b/routers/web/repo/issue_pin.go @@ -89,10 +89,6 @@ func IssuePinMove(ctx *context.Context) { log.Error(err.Error()) return } - if issue.RepoID != ctx.Repo.Repository.ID { - ctx.NotFound("CompareRepoID", issues_model.ErrCommentNotExist{}) - return - } err = issue.MovePin(ctx, form.Position) if err != nil {