X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/ab3f9742f002e3af4339c17eede2b6ee99df83b2..10fc5ae4d7c95bef5056fa06e708320b149a47d3:/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 4487ead95a..ac47ce7592 100644 --- a/apps/workbench/app/controllers/authorized_keys_controller.rb +++ b/apps/workbench/app/controllers/authorized_keys_controller.rb @@ -1,4 +1,12 @@ +# 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_uuid = current_user.uuid if current_user @@ -7,7 +15,7 @@ class AuthorizedKeysController < ApplicationController def create defaults = { authorized_user_uuid: current_user.uuid, key_type: 'SSH' } - @object = AuthorizedKey.new defaults.merge(params[:authorized_key]) + @object = AuthorizedKey.new defaults.merge(params[:authorized_key] || {}) super end end