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
1 changed files with 1 additions and 1 deletions

View File

@ -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: {