diff options
author | Eugenia Grieff <egrieff@gitlab.com> | 2019-09-12 17:14:43 +0100 |
---|---|---|
committer | Eugenia Grieff <egrieff@gitlab.com> | 2019-10-22 17:00:56 +0100 |
commit | 6ff7788d4cb6fcfec1ec1a2e9d42c04a0eb31891 (patch) | |
tree | bd20d9fb6af0c7652a6db3b112a731f5abeee514 /lib | |
parent | 6653aab95dfdfd260e8814e7499cc2345f451f99 (diff) | |
download | gitlab-ce-6ff7788d4cb6fcfec1ec1a2e9d42c04a0eb31891.tar.gz |
Fix labels finder to filter visible issuables
Use project scopes to filter project labels
Add changelog file
Check issuables visibility in LabelsFinder
Add specs for issuables visibility cases
Rename Project method to reuse in LabelsFinder
Remove commented code
Improve changelog title
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gitlab/search_results.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/search_results.rb b/lib/gitlab/search_results.rb index 782ac534a7b..d74e64116ca 100644 --- a/lib/gitlab/search_results.rb +++ b/lib/gitlab/search_results.rb @@ -163,7 +163,7 @@ module Gitlab return Milestone.none if project_ids.nil? authorized_project_ids_relation = - Project.where(id: project_ids).ids_with_milestone_available_for(current_user) + Project.where(id: project_ids).ids_with_issuables_available_for(current_user) milestones.where(project_id: authorized_project_ids_relation) end |