aboutsummaryrefslogtreecommitdiff
path: root/src/components/interactions
diff options
context:
space:
mode:
authorIlja <ilja@ilja.space>2022-09-24 16:00:10 +0200
committerIlja <ilja@ilja.space>2022-09-24 16:00:10 +0200
commit131d310703c568c9b5900587d049a8b5dd9477d8 (patch)
tree826690419a452168f9e8d99bde00b54f1b0088d6 /src/components/interactions
parent5541d0ec298a9350c151c777886ec70c36856e2d (diff)
Only show Reports tab in Interactions when privileged to see reports
Diffstat (limited to 'src/components/interactions')
-rw-r--r--src/components/interactions/interactions.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/components/interactions/interactions.js b/src/components/interactions/interactions.js
index cc51b470..1ae1d01c 100644
--- a/src/components/interactions/interactions.js
+++ b/src/components/interactions/interactions.js
@@ -15,7 +15,7 @@ const Interactions = {
return {
allowFollowingMove: this.$store.state.users.currentUser.allow_following_move,
filterMode: tabModeDict.mentions,
- canSeeReports: ['moderator', 'admin'].includes(this.$store.state.users.currentUser.role)
+ canSeeReports: this.$store.state.users.currentUser.privileges.includes('reports_manage_reports')
}
},
methods: {