Commit 6e476a7a authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Resolve conflict in app/controllers/projects/deploy_keys_controller.rb

Signed-off-by: default avatarDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
parent 1336f01c
...@@ -80,7 +80,14 @@ class Projects::DeployKeysController < Projects::ApplicationController ...@@ -80,7 +80,14 @@ class Projects::DeployKeysController < Projects::ApplicationController
params.require(:deploy_key).permit(:key, :title, :can_push) params.require(:deploy_key).permit(:key, :title, :can_push)
end end
<<<<<<< HEAD def update_params
params.require(:deploy_key).permit(:title, :can_push)
end
def authorize_update_deploy_key!
access_denied! unless can?(current_user, :update_deploy_key, deploy_key)
end
def log_audit_event(key_title, options = {}) def log_audit_event(key_title, options = {})
AuditEventService.new(current_user, @project, options) AuditEventService.new(current_user, @project, options)
.for_deploy_key(key_title).security_event .for_deploy_key(key_title).security_event
...@@ -88,13 +95,5 @@ class Projects::DeployKeysController < Projects::ApplicationController ...@@ -88,13 +95,5 @@ class Projects::DeployKeysController < Projects::ApplicationController
def load_key def load_key
@key ||= current_user.accessible_deploy_keys.find(params[:id]) @key ||= current_user.accessible_deploy_keys.find(params[:id])
=======
def update_params
params.require(:deploy_key).permit(:title, :can_push)
end
def authorize_update_deploy_key!
access_denied! unless can?(current_user, :update_deploy_key, deploy_key)
>>>>>>> ce-com/master
end end
end 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