BigW Consortium Gitlab

Solved copy/paste error!

parent 9119c363
......@@ -59,11 +59,12 @@ module API
paginate(projects)
end
def present_groups(groups, options = {})
options = options.reverse_merge(
def present_groups(params, groups)
options = {
with: Entities::Group,
current_user: current_user
)
current_user: current_user,
statistics: params[:statistics] && current_user.admin?
}
groups = groups.with_statistics if options[:statistics]
present paginate(groups), options
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment