Add toggle to disable groups
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
@@ -22,6 +22,7 @@ defmodule Mobilizon.GraphQL.Schema.ConfigType do
|
||||
field(:anonymous, :anonymous)
|
||||
field(:resource_providers, list_of(:resource_provider))
|
||||
field(:timezones, list_of(:string))
|
||||
field(:features, :features)
|
||||
|
||||
field(:terms, :terms, description: "The instance's terms") do
|
||||
arg(:locale, :string, default_value: "en")
|
||||
@@ -105,6 +106,10 @@ defmodule Mobilizon.GraphQL.Schema.ConfigType do
|
||||
field(:software, :string)
|
||||
end
|
||||
|
||||
object :features do
|
||||
field(:groups, :boolean)
|
||||
end
|
||||
|
||||
object :config_queries do
|
||||
@desc "Get the instance config"
|
||||
field :config, :config do
|
||||
|
||||
Reference in New Issue
Block a user