Skip to content
Snippets Groups Projects
Verified Commit 0a623411 authored by qwexvf's avatar qwexvf
Browse files

fix typeError in delete_button.js

not a big thing just fixes a typeError.
parent 90e3ab45
No related branches found
No related tags found
No related merge requests found
......@@ -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 }
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment