X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/e158f485053be1e840073b321033d60d686a55a8..da298b0d96a1e49a1330a4486dcbe22d92d1d743:/apps/workbench/app/controllers/users_controller.rb diff --git a/apps/workbench/app/controllers/users_controller.rb b/apps/workbench/app/controllers/users_controller.rb index 43a88955f0..7dcd4cc08d 100644 --- a/apps/workbench/app/controllers/users_controller.rb +++ b/apps/workbench/app/controllers/users_controller.rb @@ -139,7 +139,6 @@ class UsersController < ApplicationController end def home - @showallalerts = false @my_ssh_keys = AuthorizedKey.where(authorized_user_uuid: current_user.uuid) @my_tag_links = {} @@ -245,7 +244,7 @@ class UsersController < ApplicationController @repo_writable = {} repo_links.each do |link| if link.name.in? ['can_write', 'can_manage'] - @repo_writable[link.head_uuid] = true + @repo_writable[link.head_uuid] = link.name end end @@ -303,6 +302,12 @@ class UsersController < ApplicationController end end + def request_shell_access + logger.warn "request_access: #{params.inspect}" + params['request_url'] = request.url + RequestShellAccessReporter.send_request(current_user, params).deliver + end + protected def find_current_links user