diff options
author | Lin Jen-Shin <godfat@godfat.org> | 2016-11-22 16:06:42 +0800 |
---|---|---|
committer | Lin Jen-Shin <godfat@godfat.org> | 2016-11-22 17:31:27 +0800 |
commit | 28102ec28e1ef3d3203db3d05aa89ab3da234e70 (patch) | |
tree | 522d3d898cdf12f947f4d08f3d5487284eb244dc /app/controllers/admin | |
parent | 60fe975452f6781198188ae985bad7329d1aff05 (diff) | |
download | gitlab-ce-28102ec28e1ef3d3203db3d05aa89ab3da234e70.tar.gz |
Allow admin to set keys with write access, and
show write access information when showing the key.
TODO: It's ugly right now, need help!
Diffstat (limited to 'app/controllers/admin')
-rw-r--r-- | app/controllers/admin/deploy_keys_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/admin/deploy_keys_controller.rb b/app/controllers/admin/deploy_keys_controller.rb index 6b146712940..4f6a7e9e2cb 100644 --- a/app/controllers/admin/deploy_keys_controller.rb +++ b/app/controllers/admin/deploy_keys_controller.rb @@ -39,6 +39,6 @@ class Admin::DeployKeysController < Admin::ApplicationController end def deploy_key_params - params.require(:deploy_key).permit(:key, :title) + params.require(:deploy_key).permit(:key, :title, :can_push) end end |