Skip to content

Commit

Permalink
fix: show teams in acl ui
Browse files Browse the repository at this point in the history
Signed-off-by: Robin Appelman <[email protected]>
  • Loading branch information
icewind1991 committed Feb 6, 2025
1 parent 6f3f5bd commit 846555e
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion src/components/SharingSidebarView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,9 @@ export default {
if (type === 'group') {
return `${displayName} (${t('groupfolders', 'Group')})`
}
if (type === 'circle') {
return `${displayName} (${t('groupfolders', 'Team')})`
}

return displayName
},
Expand Down Expand Up @@ -298,7 +301,16 @@ export default {
label: this.getFullDisplayName(user.displayname, 'user'),
}
})
this.options = [...groups, ...users].filter((entry) => {
const circles = Object.values(result.data.ocs.data.circles).map((user) => {
return {
unique: 'circle:' + user.sid,
type: 'circle',
id: user.sid,
displayname: user.displayname,
label: this.getFullDisplayName(user.displayname, 'circle'),
}
})
this.options = [...groups, ...users, ...circles].filter((entry) => {
// filter out existing acl rules
return !this.list.find((existingAcl) => entry.unique === existingAcl.getUniqueMappingIdentifier())
})
Expand Down

0 comments on commit 846555e

Please sign in to comment.