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:
authorToon Claes <toon@gitlab.com>2017-03-03 14:00:34 +0300
committerToon Claes <toon@gitlab.com>2017-03-03 15:42:39 +0300
commit6357635686fafb2fc9af5090c1edabfe25649085 (patch)
tree978bb01a0486e2d323ec1a6096140c24794e6bae /lib/api/helpers.rb
parent06e96907eef49c3be1b3608e77420e42d554943a (diff)
Rename query parameter to `membership`
The query parameter `membership` should be more self-explaining.
Diffstat (limited to 'lib/api/helpers.rb')
-rw-r--r--lib/api/helpers.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/api/helpers.rb b/lib/api/helpers.rb
index cf57cb1b825..9c41146f1e3 100644
--- a/lib/api/helpers.rb
+++ b/lib/api/helpers.rb
@@ -252,7 +252,7 @@ module API
# project helpers
def filter_projects(projects)
- if params[:authorized]
+ if params[:membership]
projects = projects.merge(current_user.authorized_projects)
end