Skip to content

Commit

Permalink
fix(ACL): don't put inherited ACL permissions in the propPatch reques…
Browse files Browse the repository at this point in the history
…t payload

Signed-off-by: Maksim Sukharev <antreesy.web@gmail.com>
  • Loading branch information
Antreesy committed Dec 8, 2023
1 parent cf8e231 commit 8521171
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 8521171

Please sign in to comment.