Fixes user right check

This commit is contained in:
Jiayi Zheng 2016-12-08 20:26:05 +01:00
parent 1c75feae60
commit c24e44a8f2

View File

@ -9,7 +9,8 @@ const DeleteButton = {
}
},
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 }
}
}