Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLin Jen-Shin <godfat@godfat.org>2016-11-22 11:06:42 +0300
committerLin Jen-Shin <godfat@godfat.org>2016-11-22 12:31:27 +0300
commit28102ec28e1ef3d3203db3d05aa89ab3da234e70 (patch)
tree522d3d898cdf12f947f4d08f3d5487284eb244dc /app/controllers/admin/deploy_keys_controller.rb
parent60fe975452f6781198188ae985bad7329d1aff05 (diff)
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/deploy_keys_controller.rb')
-rw-r--r--app/controllers/admin/deploy_keys_controller.rb2
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