diff options
author | Toon Claes <toon@gitlab.com> | 2017-05-23 15:48:13 +0200 |
---|---|---|
committer | Toon Claes <toon@gitlab.com> | 2017-05-30 22:45:59 +0200 |
commit | 07fc79e7c53a4fa7c4dd33835b905dfa8a609ff8 (patch) | |
tree | cc9fc22af268c599f8a0f5f157b73462ba70062a /lib/api/helpers.rb | |
parent | 4fda13b68eb7da27be5e74cac6d3d537502b19f7 (diff) | |
download | gitlab-ce-07fc79e7c53a4fa7c4dd33835b905dfa8a609ff8.tar.gz |
Handle `membership` in ProjectFinder
The ProjectFinder supports the `non_public` parameter. This can be used to find
only projects the user is member of.
Diffstat (limited to 'lib/api/helpers.rb')
-rw-r--r-- | lib/api/helpers.rb | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/lib/api/helpers.rb b/lib/api/helpers.rb index 226a7ddd50e..0dc33eb2097 100644 --- a/lib/api/helpers.rb +++ b/lib/api/helpers.rb @@ -257,10 +257,6 @@ module API # project helpers def filter_projects(projects) - if params[:membership] - projects = projects.merge(current_user.authorized_projects) - end - if params[:owned] projects = projects.merge(current_user.owned_projects) end |