commit: 131d310703c568c9b5900587d049a8b5dd9477d8
parent 5541d0ec298a9350c151c777886ec70c36856e2d
Author: Ilja <ilja@ilja.space>
Date: Sat, 24 Sep 2022 16:00:10 +0200
Only show Reports tab in Interactions when privileged to see reports
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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: {