Skip to content

Commit c63b7c8

Browse files
committed
fix: show teams in acl ui
Signed-off-by: Robin Appelman <[email protected]>
1 parent 78eb01f commit c63b7c8

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

β€Žsrc/components/SharingSidebarView.vue

+13-1
Original file line numberDiff line numberDiff line change
@@ -282,6 +282,9 @@ export default {
282282
if (type === 'group') {
283283
return `${displayName} (${t('groupfolders', 'Group')})`
284284
}
285+
if (type === 'circle') {
286+
return `${displayName} (${t('groupfolders', 'Team')})`
287+
}
285288

286289
return displayName
287290
},
@@ -313,7 +316,16 @@ export default {
313316
label: this.getFullDisplayName(user.displayname, 'user'),
314317
}
315318
})
316-
this.options = [...groups, ...users].filter((entry) => {
319+
const circles = Object.values(result.data.ocs.data.circles).map((user) => {
320+
return {
321+
unique: 'circle:' + user.sid,
322+
type: 'circle',
323+
id: user.sid,
324+
displayname: user.displayname,
325+
label: this.getFullDisplayName(user.displayname, 'circle'),
326+
}
327+
})
328+
this.options = [...groups, ...users, ...circles].filter((entry) => {
317329
// filter out existing acl rules
318330
return !this.list.find((existingAcl) => entry.unique === existingAcl.getUniqueMappingIdentifier())
319331
})

0 commit comments

Comments
Β (0)