Page MenuHomePhorge

No OneTemporary

Size
958 B
Referenced Files
None
Subscribers
None
diff --git a/src/components/delete_button/delete_button.js b/src/components/delete_button/delete_button.js
index f29206662c..8d50d303cb 100644
--- a/src/components/delete_button/delete_button.js
+++ b/src/components/delete_button/delete_button.js
@@ -1,17 +1,17 @@
const DeleteButton = {
props: [ 'status' ],
methods: {
deleteStatus () {
const confirmed = window.confirm('Do you really want to delete this status?')
if (confirmed) {
this.$store.dispatch('deleteStatus', { id: this.status.id })
}
}
},
computed: {
currentUser () { return this.$store.state.users.currentUser },
- canDelete () { return this.currentUser && 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.account.id === this.currentUser.id }
}
}
export default DeleteButton

File Metadata

Mime Type
text/x-diff
Expires
Sat, Aug 8, 10:22 AM (1 d, 6 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1723088
Default Alt Text
(958 B)

Event Timeline