Fix group profile being inaccessible
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
parent
52e69bb2a3
commit
3ecc2cbad7
@ -32,16 +32,10 @@ defmodule Mobilizon.GraphQL.Resolvers.Discussion do
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def find_discussions_for_actor(%Actor{}, _args, %{
|
def find_discussions_for_actor(%Actor{}, _args, _resolution) do
|
||||||
context: %{
|
|
||||||
current_user: %User{}
|
|
||||||
}
|
|
||||||
}) do
|
|
||||||
{:ok, %Page{total: 0, elements: []}}
|
{:ok, %Page{total: 0, elements: []}}
|
||||||
end
|
end
|
||||||
|
|
||||||
def find_discussions_for_actor(%Actor{}, _args, _resolution), do: {:error, :unauthenticated}
|
|
||||||
|
|
||||||
@spec get_discussion(any(), map(), Absinthe.Resolution.t()) ::
|
@spec get_discussion(any(), map(), Absinthe.Resolution.t()) ::
|
||||||
{:ok, Discussion.t()} | {:error, :unauthorized | :discussion_not_found | String.t()}
|
{:ok, Discussion.t()} | {:error, :unauthorized | :discussion_not_found | String.t()}
|
||||||
def get_discussion(_parent, %{id: id}, %{
|
def get_discussion(_parent, %{id: id}, %{
|
||||||
|
Loading…
Reference in New Issue
Block a user