fix: update group page UI on logout to hide member and admin content
Solves #1793
This commit is contained in:
@@ -1125,6 +1125,9 @@ const isCurrentActorFollowingNotify = computed((): boolean => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
const hasCurrentActorThisRole = (givenRole: string | string[]): 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];
|
const roles = Array.isArray(givenRole) ? givenRole : [givenRole];
|
||||||
return (
|
return (
|
||||||
personMemberships.value?.total > 0 &&
|
personMemberships.value?.total > 0 &&
|
||||||
|
|||||||
Reference in New Issue
Block a user