X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/10d1f3b4e8f071cad77d1abfaa14838b28b4ddf8..eb8307817db46d208c5c3517dbeafbc5b02a6f5f:/apps/workbench/app/controllers/authorized_keys_controller.rb?ds=inline diff --git a/apps/workbench/app/controllers/authorized_keys_controller.rb b/apps/workbench/app/controllers/authorized_keys_controller.rb index 5ca5222d6e..ac47ce7592 100644 --- a/apps/workbench/app/controllers/authorized_keys_controller.rb +++ b/apps/workbench/app/controllers/authorized_keys_controller.rb @@ -1,12 +1,21 @@ +# Copyright (C) The Arvados Authors. All rights reserved. +# +# SPDX-License-Identifier: AGPL-3.0 + 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 - @object = AuthorizedKey.new authorized_user: current_user.uuid, key_type: 'SSH' + defaults = { authorized_user_uuid: current_user.uuid, key_type: 'SSH' } + @object = AuthorizedKey.new defaults.merge(params[:authorized_key] || {}) super end end