Fixes user right check

このコミットが含まれているのは:
Jiayi Zheng 2016-12-08 20:26:05 +01:00
コミット c24e44a8f2
1個のファイルの変更2行の追加1行の削除

ファイルの表示

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