summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOswaldo Ferreira <oswaldo@gitlab.com>2017-05-10 15:21:31 -0300
committerOswaldo Ferreira <oswaldo@gitlab.com>2017-05-10 15:21:31 -0300
commit368bf99eb758a738d225134e3baa6763869e7541 (patch)
tree337ea3ea75035087e9e185dd25f86f4dd7adfbfc
parent9d08dddfdb0ef66de9ec3b7c7cbfd96e2f949678 (diff)
downloadgitlab-ce-368bf99eb758a738d225134e3baa6763869e7541.tar.gz
Remove unnecessary user hash being passed to DeploymentSerializerenforce-current-user-usage-on-entities
-rw-r--r--app/controllers/projects/deployments_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/projects/deployments_controller.rb b/app/controllers/projects/deployments_controller.rb
index dcdb2a8fa3e..f06a4d943f3 100644
--- a/app/controllers/projects/deployments_controller.rb
+++ b/app/controllers/projects/deployments_controller.rb
@@ -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(current_user: @current_user, project: project)
+ render json: { deployments: DeploymentSerializer.new(project: project)
.represent_concise(deployments) }
end