BigW Consortium Gitlab

Commit bae0a060 by Kamil Trzciński

Merge branch 'enforce-current-user-usage-on-entities' into 'master'

Make all Serializers receive `current_user` instead `user` [CE] See merge request !11254
parents cb2f739d 368bf99e
......@@ -6,7 +6,7 @@ class Projects::DeploymentsController < Projects::ApplicationController
deployments = environment.deployments.reorder(created_at: :desc)
deployments = deployments.where('created_at > ?', params[:after].to_time) if params[:after]&.to_time
render json: { deployments: DeploymentSerializer.new(user: @current_user, project: project)
render json: { deployments: DeploymentSerializer.new(project: project)
.represent_concise(deployments) }
end
......
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