X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/0e4203db1f9b8030c0c9b64bf33e41055fa4f5be..c6ad75e4241247ac18f5a5a8c397537dc6be1e3c:/apps/workbench/app/controllers/groups_controller.rb?ds=sidebyside diff --git a/apps/workbench/app/controllers/groups_controller.rb b/apps/workbench/app/controllers/groups_controller.rb index b360b19aae..854496a56a 100644 --- a/apps/workbench/app/controllers/groups_controller.rb +++ b/apps/workbench/app/controllers/groups_controller.rb @@ -1,8 +1,13 @@ class GroupsController < ApplicationController def index - @groups = Group.all + @groups = Group.filter [['group_class', 'not in', ['folder']]] @group_uuids = @groups.collect &:uuid @links_from = Link.where link_class: 'permission', tail_uuid: @group_uuids @links_to = Link.where link_class: 'permission', head_uuid: @group_uuids end + + def show + return redirect_to(folder_path(@object)) if @object.group_class == 'folder' + super + end end