Skip to content

Commit

Permalink
Merge pull request #2660 from nextcloud/fix/2659/omit-inherited-acl
Browse files Browse the repository at this point in the history
fix(ACL): don't put inherited ACL permissions in the propPatch request payload
  • Loading branch information
Antreesy authored Dec 18, 2023
2 parents b233a24 + 8521171 commit fe045c0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/SharingSidebarView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ export default {
const rule = new Rule()
rule.fromValues(option.type, option.id, option.displayname, 0b00000, 0b11111)
this.list.push(rule)
client.propPatch(this.model, this.list).then(() => {
client.propPatch(this.model, this.list.filter(rule => !rule.inherited)).then(() => {
this.showAclCreate = false
})
},
Expand All @@ -319,7 +319,7 @@ export default {
if (index > -1) {
list.splice(index, 1)
}
client.propPatch(this.model, list).then(() => {
client.propPatch(this.model, list.filter(rule => !rule.inherited)).then(() => {
this.list.splice(index, 1)
const inheritedAcl = this.inheritedAclsById[rule.getUniqueMappingIdentifier()]
if (inheritedAcl != null) {
Expand Down Expand Up @@ -347,7 +347,7 @@ export default {
}
item.inherited = false
Vue.set(this.list, index, item)
client.propPatch(this.model, this.list).then(() => {
client.propPatch(this.model, this.list.filter(rule => !rule.inherited)).then(() => {
// TODO block UI during save
})
},
Expand Down

0 comments on commit fe045c0

Please sign in to comment.