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
2 merge requests!7383Allow to add deploy keys with write-access,!5807WIP: Allow to add deploy keys with write-access
Pipeline #
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.
Please register or to comment