Skip to content
Snippets Groups Projects
Commit c3508851 authored by Ali Ibrahim's avatar Ali Ibrahim
Browse files

Set current user as deploy key user

parent 2811a213
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -16,7 +16,7 @@ class Projects::DeployKeysController < Projects::ApplicationController
end
 
def create
@key = DeployKey.new(deploy_key_params)
@key = DeployKey.new(deploy_key_params.merge(user: current_user))
set_index_vars
 
if @key.valid? && @project.deploy_keys << @key
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment