fix up editable stuff
[arvados.git] / apps / workbench / app / controllers / authorized_keys_controller.rb
1 class AuthorizedKeysController < ApplicationController
2   def new
3     super
4     @object.authorized_user = current_user.uuid if current_user
5     @object.key_type = 'SSH'
6   end
7
8   def create
9     @object = AuthorizedKey.new authorized_user: current_user.uuid, key_type: 'SSH'
10     super
11   end
12 end