Merge branch 'fix-group-report' into 'main'

fix(front): fix reporting group

See merge request framasoft/mobilizon!1521
This commit is contained in:
Thomas Citharel 2024-01-04 13:25:15 +00:00
commit 5997e9e14c

View file

@ -1086,7 +1086,10 @@ const physicalAddress = computed((): Address | null => {
}); });
const ableToReport = computed((): boolean => { const ableToReport = computed((): boolean => {
return anonymousReportsConfig.value?.allowed === true; return (
currentActor.value?.id !== undefined ||
anonymousReportsConfig.value?.allowed === true
);
}); });
const organizedEvents = computed((): Paginate<IEvent> => { const organizedEvents = computed((): Paginate<IEvent> => {