Fix anonymous call to profile endpoint

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel
2020-10-01 19:10:18 +02:00
parent bd581d896e
commit beba4a16ea
2 changed files with 6 additions and 3 deletions

View File

@@ -324,6 +324,9 @@ defmodule Mobilizon.GraphQL.Resolvers.Person do
end
end
def organized_events_for_person(_parent, _args, _resolution),
do: {:ok, %Page{elements: [], total: 0}}
# We check that the actor is not the last administrator/creator of a group
@spec last_admin_of_a_group?(integer()) :: boolean()
defp last_admin_of_a_group?(actor_id) do