summaryrefslogtreecommitdiff
path: root/lib/api/v3/projects.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/api/v3/projects.rb')
-rw-r--r--lib/api/v3/projects.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/api/v3/projects.rb b/lib/api/v3/projects.rb
index b753dbab381..ba9748ada59 100644
--- a/lib/api/v3/projects.rb
+++ b/lib/api/v3/projects.rb
@@ -107,7 +107,7 @@ module API
end
get '/visible' do
entity = current_user ? ::API::V3::Entities::ProjectWithAccess : ::API::Entities::BasicProjectDetails
- present_projects ProjectsFinder.new.execute(current_user), with: entity
+ present_projects ProjectsFinder.new(current_user: current_user).execute, with: entity
end
desc 'Get a projects list for authenticated user' do