From 71e692385b7f9337454fdeabe6842138f397312b Mon Sep 17 00:00:00 2001 From: Massedil Date: Wed, 18 Jun 2025 19:30:12 +0200 Subject: [PATCH] fix: update group page UI on logout to hide member and admin content Solves #1793 --- src/views/Group/GroupView.vue | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/views/Group/GroupView.vue b/src/views/Group/GroupView.vue index 9934d7576..642a9b417 100644 --- a/src/views/Group/GroupView.vue +++ b/src/views/Group/GroupView.vue @@ -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 &&