diff options
author | Toon Claes <toon@gitlab.com> | 2017-03-03 14:00:34 +0300 |
---|---|---|
committer | Toon Claes <toon@gitlab.com> | 2017-03-03 15:42:39 +0300 |
commit | 6357635686fafb2fc9af5090c1edabfe25649085 (patch) | |
tree | 978bb01a0486e2d323ec1a6096140c24794e6bae /lib/api/helpers.rb | |
parent | 06e96907eef49c3be1b3608e77420e42d554943a (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.rb | 2 |
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 |