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
|
||||
delete physicalAddress.__typename;
|
||||
}
|
||||
delete physicalAddress?.pictureInfo;
|
||||
delete variables.avatar;
|
||||
delete variables.banner;
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue