From d98f73092152734e5d3f7322b059232d08caae9b Mon Sep 17 00:00:00 2001 From: Jiayi Zheng Date: Mon, 19 Dec 2016 17:03:02 +0100 Subject: [PATCH] Fixes currentUser rights --- src/components/delete_button/delete_button.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/delete_button/delete_button.js b/src/components/delete_button/delete_button.js index 990c32ad..726509d0 100644 --- a/src/components/delete_button/delete_button.js +++ b/src/components/delete_button/delete_button.js @@ -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 } } }