diff --git a/lib/api/projects.rb b/lib/api/projects.rb index 7aea553bdca9eee1eb657ff568e830fd6288a926..844547665ef5d41a370fd5b3b1f42c394aeb58f0 100644 --- a/lib/api/projects.rb +++ b/lib/api/projects.rb @@ -25,7 +25,7 @@ module API @projects = current_user.authorized_projects @projects = filter_projects(@projects) @projects = paginate @projects - if params["simple"] + if params[:simple] present @projects, with: Entities::BasicProjectWithAccess, user: current_user else present @projects, with: Entities::ProjectWithAccess, user: current_user