Merge branch 'master' of git.clinicalfuture.com:arvados
[arvados.git] / apps / workbench / app / controllers / groups_controller.rb
1 class GroupsController < ApplicationController
2   def index
3     @groups = Group.limit(10000).all
4     @group_uuids = @groups.collect &:uuid
5     @owned_users = User.where owner_uuid: @group_uuids
6     @links_from = Link.where link_class: 'permission', tail_uuid: @group_uuids
7     @links_to = Link.where link_class: 'permission', head_uuid: @group_uuids
8   end
9 end