fix typeError in delete_button.js

not a big thing just fixes a typeError.
This commit is contained in:
qwexvf 2018-03-20 22:33:43 +09:00
parent 90e3ab45d4
commit 0a62341135
No known key found for this signature in database
GPG Key ID: DE44FCC2D340AD66
1 changed files with 1 additions and 1 deletions

View File

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