From c5e1dcf950ea31fce95d89bcad7c1f62e78f35ca Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Thu, 28 May 2026 15:16:21 +0200 Subject: [PATCH] fix: don't show inherited rule if there is a rule overwriting it Signed-off-by: Robin Appelman --- src/components/SharingSidebarView.vue | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/components/SharingSidebarView.vue b/src/components/SharingSidebarView.vue index 02d08a18c..ab6e46111 100644 --- a/src/components/SharingSidebarView.vue +++ b/src/components/SharingSidebarView.vue @@ -13,7 +13,7 @@ import { showError } from '@nextcloud/dialogs' import { Permission } from '@nextcloud/files' import { t } from '@nextcloud/l10n' import { generateUrl } from '@nextcloud/router' -import { nextTick, ref, useTemplateRef, watch } from 'vue' +import { computed, nextTick, ref, useTemplateRef, watch } from 'vue' import NcAvatar from '@nextcloud/vue/components/NcAvatar' import NcButton from '@nextcloud/vue/components/NcButton' import NcIconSvgWrapper from '@nextcloud/vue/components/NcIconSvgWrapper' @@ -48,6 +48,11 @@ const groupFolderId = ref() const aclBasePermission = ref(Permission.ALL) const list = ref([]) const inheritedAcls = ref([]) +const notSetInheritedAcl = computed(() => { + return inheritedAcls + .value + .filter((rule) => list.value.find((r) => r.getUniqueMappingIdentifier() === rule.getUniqueMappingIdentifier()) === undefined) +}); // component state const showAclCreate = ref(false) @@ -359,7 +364,7 @@ async function changePermission(item: Rule, permission: number, state: number) { - + {{ getFullDisplayName(item.mappingDisplayName, item.mappingType) }}