X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/a59152e34814f453a7380e68a55534e2f8922d57..57647945b08a74bab02fed6adf947eb9adb8321f:/apps/workbench/app/controllers/links_controller.rb diff --git a/apps/workbench/app/controllers/links_controller.rb b/apps/workbench/app/controllers/links_controller.rb index 35a5dbc2e8..b79fad4a6c 100644 --- a/apps/workbench/app/controllers/links_controller.rb +++ b/apps/workbench/app/controllers/links_controller.rb @@ -1,3 +1,13 @@ +# Copyright (C) The Arvados Authors. All rights reserved. +# +# SPDX-License-Identifier: AGPL-3.0 + class LinksController < ApplicationController - before_filter :ensure_current_user_is_admin + def show + if @object.link_class == 'name' and + Collection == ArvadosBase::resource_class_for_uuid(@object.head_uuid) + return redirect_to collection_path(@object.uuid) + end + super + end end