Set current user as deploy key user
This commit is contained in:
parent
2811a213a6
commit
c3508851bf
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue