diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-09-06 03:12:24 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-09-06 03:12:24 +0300 |
commit | f48ded4221ac830ff354693740cf919052359e00 (patch) | |
tree | 9da7807e75043104cab4892e405fd990f25a1542 /app/finders | |
parent | ccfa4b271b5a24d350b3389dc1f43b25177d03ed (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/finders')
-rw-r--r-- | app/finders/issues_finder.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/finders/issues_finder.rb b/app/finders/issues_finder.rb index 663dda73a6a..9f96abcd4e5 100644 --- a/app/finders/issues_finder.rb +++ b/app/finders/issues_finder.rb @@ -60,10 +60,10 @@ class IssuesFinder < IssuableFinder # count of issues assigned to the user for the header bar. return issues.all if current_user && assignee_filter.includes_user?(current_user) - return issues.where('issues.confidential IS NOT TRUE') if params.user_cannot_see_confidential_issues? + return issues.public_only if params.user_cannot_see_confidential_issues? issues.where(' - issues.confidential IS NOT TRUE + issues.confidential = FALSE OR (issues.confidential = TRUE AND (issues.author_id = :user_id OR EXISTS (SELECT TRUE FROM issue_assignees WHERE user_id = :user_id AND issue_id = issues.id) |