fix typeError in delete_button.js

not a big thing just fixes a typeError.
environments/dev/deployments/93
qwexvf 7 years ago
parent 90e3ab45d4
commit 0a62341135
No known key found for this signature in database
GPG Key ID: DE44FCC2D340AD66

@ -10,7 +10,7 @@ const DeleteButton = {
},
computed: {
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 }
}
}

Loading…
Cancel
Save