X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/295fc9c4096668e59963999c22a0d7c07e1c32a1..b6f73f7acffa9b2f37c78826ff6cee89987a7edc:/apps/workbench/app/controllers/authorized_keys_controller.rb diff --git a/apps/workbench/app/controllers/authorized_keys_controller.rb b/apps/workbench/app/controllers/authorized_keys_controller.rb index dc8a099831..6eaec1ee59 100644 --- a/apps/workbench/app/controllers/authorized_keys_controller.rb +++ b/apps/workbench/app/controllers/authorized_keys_controller.rb @@ -1,6 +1,17 @@ class AuthorizedKeysController < ApplicationController + def index_pane_list + %w(Recent Help) + end + def new super - @object.authorized_user = current_user.uuid if current_user + @object.authorized_user_uuid = current_user.uuid if current_user + @object.key_type = 'SSH' + end + + def create + defaults = { authorized_user_uuid: current_user.uuid, key_type: 'SSH' } + @object = AuthorizedKey.new defaults.merge(params[:authorized_key] || {}) + super end end