We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 1a4241d + f8ca608 commit 4f461fdCopy full SHA for 4f461fd
1 file changed
plugins/card-resources/src/components/settings/EditRole.svelte
@@ -50,7 +50,7 @@
50
.getModel()
51
.findAllSync(cardPlugin.class.PermissionObjectClass, {})
52
.map((poc) => poc.objectClass)
53
- const tagDesc = Array.from(new Set(role?.types?.map((p) => h.getAncestors(p)).flat()))
+ const tagDesc = Array.from(new Set(role?.types?.map((p) => [...h.getAncestors(p), ...h.getDescendants(p)]).flat()))
54
const allPermissions = client.getModel().findAllSync(core.class.Permission, {
55
scope: 'space',
56
objectClass: { $in: [...cardPermissionsObjectClasses, ...tagDesc] }
0 commit comments