Fix anonymous call to profile endpoint
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
parent
bd581d896e
commit
beba4a16ea
@ -324,6 +324,9 @@ defmodule Mobilizon.GraphQL.Resolvers.Person do
|
|||||||
end
|
end
|
||||||
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
|
# We check that the actor is not the last administrator/creator of a group
|
||||||
@spec last_admin_of_a_group?(integer()) :: boolean()
|
@spec last_admin_of_a_group?(integer()) :: boolean()
|
||||||
defp last_admin_of_a_group?(actor_id) do
|
defp last_admin_of_a_group?(actor_id) do
|
||||||
|
@ -682,7 +682,7 @@ msgstr "Vous devez être connecté·e et un·e administrateur·ice pour sauvegar
|
|||||||
#, elixir-format
|
#, elixir-format
|
||||||
#: lib/graphql/resolvers/discussion.ex:66
|
#: lib/graphql/resolvers/discussion.ex:66
|
||||||
msgid "You need to be logged-in to access discussions"
|
msgid "You need to be logged-in to access discussions"
|
||||||
msgstr "Vous devez être connecté·e pour supprimer votre compte"
|
msgstr "Vous devez être connecté·e pour accéder aux discussions"
|
||||||
|
|
||||||
#, elixir-format
|
#, elixir-format
|
||||||
#: lib/graphql/resolvers/resource.ex:92
|
#: lib/graphql/resolvers/resource.ex:92
|
||||||
@ -697,7 +697,7 @@ msgstr "Vous devez être connecté·e pour changer votre adresse e-mail"
|
|||||||
#, elixir-format
|
#, elixir-format
|
||||||
#: lib/graphql/resolvers/event.ex:213
|
#: lib/graphql/resolvers/event.ex:213
|
||||||
msgid "You need to be logged-in to create events"
|
msgid "You need to be logged-in to create events"
|
||||||
msgstr "Vous devez être connecté·e pour supprimer votre compte"
|
msgstr "Vous devez être connecté·e pour créer des événements"
|
||||||
|
|
||||||
#, elixir-format
|
#, elixir-format
|
||||||
#: lib/graphql/resolvers/post.ex:139
|
#: lib/graphql/resolvers/post.ex:139
|
||||||
@ -777,7 +777,7 @@ msgstr "Vous devez être connecté·e pour supprimer un groupe"
|
|||||||
#, elixir-format
|
#, elixir-format
|
||||||
#: lib/graphql/resolvers/person.ex:95
|
#: lib/graphql/resolvers/person.ex:95
|
||||||
msgid "You need to be logged-in to view your list of identities"
|
msgid "You need to be logged-in to view your list of identities"
|
||||||
msgstr "Vous devez être connecté·e pour supprimer votre compte"
|
msgstr "Vous devez être connecté·e pour visionner votre liste d'identités"
|
||||||
|
|
||||||
#, elixir-format
|
#, elixir-format
|
||||||
#: lib/graphql/resolvers/picture.ex:83
|
#: lib/graphql/resolvers/picture.ex:83
|
||||||
|
Loading…
Reference in New Issue
Block a user