Add :allow_see_participants in group/actor - #687

This commit is contained in:
Laurent GAY
2025-11-11 12:03:21 +01:00
committed by setop
parent 6b558e5301
commit 8116f03ebf
6 changed files with 87 additions and 5 deletions

View File

@@ -61,6 +61,11 @@ defmodule Mobilizon.GraphQL.Schema.Actors.GroupType do
description: "The type of the event's address"
)
field(:allow_see_participants, :boolean,
description: "Option to allow group's member to see event's participants",
default_value: false
)
# These one should have a privacy setting
field(:followers_count, :integer,
description: "Number of followers for this actor",
@@ -320,6 +325,12 @@ defmodule Mobilizon.GraphQL.Schema.Actors.GroupType do
)
arg(:physical_address, :address_input, description: "The physical address for the group")
arg(:allow_see_participants, :boolean,
description: "Option to allow group's member to see event's participants",
default_value: false
)
middleware(Rajska.QueryAuthorization, permit: :user, scope: false)
resolve(&Group.create_group/3)
end
@@ -352,6 +363,11 @@ defmodule Mobilizon.GraphQL.Schema.Actors.GroupType do
)
arg(:physical_address, :address_input, description: "The physical address for the group")
arg(:allow_see_participants, :boolean,
description: "Option to allow group's member to see event's participants"
)
middleware(Rajska.QueryAuthorization, permit: :user, scope: false)
resolve(&Group.update_group/3)
end