Fix group location edition

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel 2022-10-05 18:17:11 +02:00
parent fee4f9add8
commit 620008ee0d
No known key found for this signature in database
GPG Key ID: A061B9DDE0CA0773
2 changed files with 5 additions and 0 deletions

View File

@ -318,6 +318,7 @@ const buildVariables = computed(() => {
// @ts-ignore
delete physicalAddress.__typename;
}
delete physicalAddress?.pictureInfo;
delete variables.avatar;
delete variables.banner;

View File

@ -237,6 +237,10 @@ defmodule Mobilizon.GraphQL.Resolvers.Group do
end
end
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")}
end
end