1 # Copyright (C) The Arvados Authors. All rights reserved.
3 # SPDX-License-Identifier: AGPL-3.0
5 class GroupsController < ApplicationController
7 @groups = Group.filter [['group_class', '!=', 'project']]
8 @group_uuids = @groups.collect &:uuid
9 @links_from = Link.where link_class: 'permission', tail_uuid: @group_uuids
10 @links_to = Link.where link_class: 'permission', head_uuid: @group_uuids
15 if @object.group_class == 'project'
16 redirect_to(project_path(@object))