X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/3173f909ce49d67a11ab2230cf09629f7e259b74..2bf927358c5956c5296009948c45403c54787021:/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 ec8d2415d1..6eaec1ee59 100644 --- a/apps/workbench/app/controllers/authorized_keys_controller.rb +++ b/apps/workbench/app/controllers/authorized_keys_controller.rb @@ -1,2 +1,17 @@ class AuthorizedKeysController < ApplicationController + def index_pane_list + %w(Recent Help) + end + + def new + super + @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