Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDouglas Barbosa Alexandre <dbalexandre@gmail.com>2016-10-17 21:55:46 +0300
committerDouglas Barbosa Alexandre <dbalexandre@gmail.com>2016-10-19 19:58:27 +0300
commit1e5ea6e7e05cd45fc56d0341ac8b5c32e57779b5 (patch)
tree12e4773fcdcd8b3aa8ea7d74a8bdde918fda0a31 /app/finders/labels_finder.rb
parent530aae9080942646b130510e970d9d82c009d8e5 (diff)
Return only labels that user have access on IssuableFinder#labels
Diffstat (limited to 'app/finders/labels_finder.rb')
-rw-r--r--app/finders/labels_finder.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/finders/labels_finder.rb b/app/finders/labels_finder.rb
index 5ee2e1ee6e8..48fd1280ed2 100644
--- a/app/finders/labels_finder.rb
+++ b/app/finders/labels_finder.rb
@@ -45,7 +45,7 @@ class LabelsFinder < UnionFinder
params[:project_id].presence
end
- def project_ids
+ def projects_ids
params[:project_ids].presence
end
@@ -70,7 +70,7 @@ class LabelsFinder < UnionFinder
@projects = available_projects
@projects = @projects.in_namespace(group_id) if group_id
- @projects = @projects.where(id: project_ids) if project_ids
+ @projects = @projects.where(id: projects_ids) if projects_ids
@projects = @projects.reorder(nil)
@projects