diff options
Diffstat (limited to 'app/graphql/resolvers/group_members_resolver.rb')
-rw-r--r-- | app/graphql/resolvers/group_members_resolver.rb | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/app/graphql/resolvers/group_members_resolver.rb b/app/graphql/resolvers/group_members_resolver.rb new file mode 100644 index 00000000000..f34c873a8a9 --- /dev/null +++ b/app/graphql/resolvers/group_members_resolver.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Resolvers + class GroupMembersResolver < MembersResolver + authorize :read_group_member + + private + + def preloads + { + user: [:user, :source] + } + end + + def finder_class + GroupMembersFinder + end + end +end |