modify event's participatiants permission - #687

This commit is contained in:
Laurent GAY
2025-11-12 12:15:35 +01:00
committed by setop
parent 8116f03ebf
commit 3cdfc76aff
4 changed files with 313 additions and 4 deletions

View File

@@ -160,7 +160,7 @@ defmodule Mobilizon.GraphQL.Resolvers.Event do
%{context: %{current_actor: %Actor{} = actor}} = _resolution
) do
# Check that moderator has right
if can_event_be_updated_by?(event, actor) do
if can_event_be_access_by?(event, actor) do
roles =
case roles do
nil ->