aboutsummaryrefslogtreecommitdiff
path: root/src/components/extra_buttons/extra_buttons.js
diff options
context:
space:
mode:
authorHJ <30-hj@users.noreply.git.pleroma.social>2022-11-21 19:23:41 +0000
committerHJ <30-hj@users.noreply.git.pleroma.social>2022-11-21 19:23:41 +0000
commit8a87d82b7baf6cd8c4d1f33ee04d9fa1a25ae825 (patch)
tree64726778724e1f6bbcad76dddd8bdda443e73714 /src/components/extra_buttons/extra_buttons.js
parent6263ad7571b82ed7333a831a69a59c4192455b1d (diff)
parent131d310703c568c9b5900587d049a8b5dd9477d8 (diff)
Merge branch 'fine_grained_moderation_privileges' into 'develop'
Add privileges Closes #1177 See merge request pleroma/pleroma-fe!1583
Diffstat (limited to 'src/components/extra_buttons/extra_buttons.js')
-rw-r--r--src/components/extra_buttons/extra_buttons.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/components/extra_buttons/extra_buttons.js b/src/components/extra_buttons/extra_buttons.js
index 2e495423..3dc968c9 100644
--- a/src/components/extra_buttons/extra_buttons.js
+++ b/src/components/extra_buttons/extra_buttons.js
@@ -113,8 +113,7 @@ const ExtraButtons = {
currentUser () { return this.$store.state.users.currentUser },
canDelete () {
if (!this.currentUser) { return }
- const superuser = this.currentUser.rights.moderator || this.currentUser.rights.admin
- return superuser || this.status.user.id === this.currentUser.id
+ return this.currentUser.privileges.includes('messages_delete') || this.status.user.id === this.currentUser.id
},
ownStatus () {
return this.status.user.id === this.currentUser.id