Fixes user right check
This commit is contained in:
parent
1c75feae60
commit
c24e44a8f2
1 changed files with 2 additions and 1 deletions
|
@ -9,7 +9,8 @@ const DeleteButton = {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
canDelete () { return this.status.user.rights.delete_others_notice || this.status.user.id == this.$store.state.users.currentUser.id }
|
currentUser () { return this.$store.state.users.currentUser },
|
||||||
|
canDelete () { return this.currentUser.delete_others_notice || this.status.user.id == this.currentUser.id }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue