forked from potsda.mn/mobilizon
Do not list drafts in upcoming / old events event if moderator
Closes #1086 Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
parent
48da35ee41
commit
75296498c4
|
@ -446,8 +446,7 @@ defmodule Mobilizon.GraphQL.Resolvers.Group do
|
|||
}
|
||||
}
|
||||
) do
|
||||
if Actors.is_member?(actor_id, group_id) or is_moderator(user_role) do
|
||||
# TODO : Handle public / restricted to group members events
|
||||
if Actors.is_member?(actor_id, group_id) do
|
||||
{:ok,
|
||||
Events.list_organized_events_for_group(
|
||||
group,
|
||||
|
|
Loading…
Reference in a new issue