summaryrefslogtreecommitdiff
path: root/app/graphql/types/permission_types/group_enum.rb
blob: 6d51d94a70d43a33eb4b3b6538b2c7eca14a2bc5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# frozen_string_literal: true

module Types
  module PermissionTypes
    class GroupEnum < BaseEnum
      graphql_name 'GroupPermission'
      description 'User permission on groups'

      value 'CREATE_PROJECTS', value: :create_projects, description: 'Groups where the user can create projects.'
      value 'TRANSFER_PROJECTS',
        value: :transfer_projects,
        description: 'Groups where the user can transfer projects to.'
      value 'IMPORT_PROJECTS',
        value: :import_projects,
        description: 'Groups where the user can import projects to.'
    end
  end
end