Skip to content

Commit 0b82fed

Browse files
committed
Fix test
1 parent 707af3c commit 0b82fed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

models/issues/issue_search.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ func applyConditions(sess *xorm.Session, opts *IssuesOptions) {
277277
sess.And(repo_model.UserOwnedRepoCond(opts.Owner.ID))
278278
}
279279

280-
if opts.Doer != nil {
280+
if opts.Doer != nil && !opts.Doer.IsAdmin {
281281
sess.And(issuePullAccessibleRepoCond("issue.repo_id", opts.Doer.ID, opts.Owner, opts.Team, opts.IsPull.Value()))
282282
}
283283
}

0 commit comments

Comments
 (0)