Fixes currentUser rights

This commit is contained in:
Jiayi Zheng 2016-12-19 17:03:02 +01:00
parent ed0d02b0ad
commit d98f730921

View file

@ -10,7 +10,7 @@ const DeleteButton = {
},
computed: {
currentUser () { return this.$store.state.users.currentUser },
canDelete () { return this.currentUser.delete_others_notice || this.status.user.id == this.currentUser.id }
canDelete () { return this.currentUser.rights.delete_others_notice || this.status.user.id == this.currentUser.id }
}
}