Skip to content

Commit aa36662

Browse files
icewind1991backportbot[bot]
authored andcommitted
fix: don't add inherited permissions when creating a new rule from inherited
Signed-off-by: Robin Appelman <[email protected]>
1 parent 5f30c34 commit aa36662

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/client.js

+4
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,10 @@ class AclDavService {
228228
inheritedAclsById[id] = acl
229229
if (aclsById[id] == null) {
230230
aclsById[id] = acl
231+
232+
aclsById[id].inheritedMask = acl.mask
233+
aclsById[id].inheritedPermissions = acl.permissions
234+
aclsById[id].mask = 0
231235
} else {
232236
aclsById[id].inheritedMask = acl.mask
233237
aclsById[id].inheritedPermissions = acl.permissions

src/components/SharingSidebarView.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ export default {
310310
})
311311
},
312312
createAcl(option) {
313-
this.value = null;
313+
this.value = null
314314
const rule = new Rule()
315315
rule.fromValues(option.type, option.id, option.displayname, 0b00000, 0b11111)
316316
this.list.push(rule)

0 commit comments

Comments
 (0)