Only show Reports tab in Interactions when privileged to see reports

This commit is contained in:
Ilja 2022-09-24 16:00:10 +02:00
parent 5541d0ec29
commit 131d310703

View File

@ -15,7 +15,7 @@ const Interactions = {
return { return {
allowFollowingMove: this.$store.state.users.currentUser.allow_following_move, allowFollowingMove: this.$store.state.users.currentUser.allow_following_move,
filterMode: tabModeDict.mentions, 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: { methods: {