Skip to content
Snippets Groups Projects
Commit d98f7309 authored by Jiayi Zheng's avatar Jiayi Zheng
Browse files

Fixes currentUser rights

parent ed0d02b0
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.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 }
}
}
......
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