fix: update group page UI on logout to hide member and admin content

Solves #1793
This commit is contained in:
Massedil
2025-06-18 19:30:12 +02:00
parent b357e6bee0
commit 71e692385b

View File

@@ -1125,6 +1125,9 @@ const isCurrentActorFollowingNotify = computed((): boolean => {
});
const hasCurrentActorThisRole = (givenRole: string | string[]): boolean => {
// If the actor is not set, he is not member of the group
if (!currentActor.value?.id) return false;
const roles = Array.isArray(givenRole) ? givenRole : [givenRole];
return (
personMemberships.value?.total > 0 &&