Skip to content

Commit

Permalink
fix(MemberPicker): respect inherrited current user via groups/circles
Browse files Browse the repository at this point in the history
Signed-off-by: Jonas <[email protected]>
  • Loading branch information
mejo- committed Jul 27, 2023
1 parent b75ff18 commit db0b0ce
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/components/Member/CurrentMembers.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
:display-name="item.displayName"
:user-type="circleMemberType(item)"
:level="item.level"
:is-current-user="item.userId === currentUser"
:is-current-user="isCurrentUser(item)"
:is-searched="false" />
<Hint v-if="isSearching && searchedMembers.length === 0"
:hint="t('collectives', 'No search results')" />
Expand Down Expand Up @@ -75,6 +75,13 @@ export default {
currentUser() {
return getCurrentUser().uid
},
isCurrentUser() {
return function(item) {
return item.userId === this.currentUser
|| item.singleId === item.circle.initiator.singleId
}
},
},
methods: {
Expand Down

0 comments on commit db0b0ce

Please sign in to comment.