Fixes user right check

fix/only_display_follow_button_when_logged_in
Jiayi Zheng 8 years ago
parent 1c75feae60
commit c24e44a8f2

@ -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 }
}
}

Loading…
Cancel
Save