Fix group location edition
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
parent
fee4f9add8
commit
620008ee0d
|
@ -318,6 +318,7 @@ const buildVariables = computed(() => {
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
delete physicalAddress.__typename;
|
delete physicalAddress.__typename;
|
||||||
}
|
}
|
||||||
|
delete physicalAddress?.pictureInfo;
|
||||||
delete variables.avatar;
|
delete variables.avatar;
|
||||||
delete variables.banner;
|
delete variables.banner;
|
||||||
|
|
||||||
|
|
|
@ -237,6 +237,10 @@ defmodule Mobilizon.GraphQL.Resolvers.Group do
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
|
Logger.info(
|
||||||
|
"Profile #{updater_actor.id} tried to update group #{group_id}, but they are not admin"
|
||||||
|
)
|
||||||
|
|
||||||
{:error, dgettext("errors", "Profile is not administrator for the group")}
|
{:error, dgettext("errors", "Profile is not administrator for the group")}
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue