projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'master' into 4036-combine-collections-in-project-issue
[arvados.git]
/
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 35a5dbc2e880295c57f7cde19af6e4950abffb8d..fd51fb161614c36ec137f84948ec49631be61e2c 100644
(file)
--- a/
apps/workbench/app/controllers/links_controller.rb
+++ b/
apps/workbench/app/controllers/links_controller.rb
@@
-1,3
+1,9
@@
class LinksController < ApplicationController
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
end