ensure we only fetch reports when we're an admin

Ref #288
This commit is contained in:
FloatingGhost 2023-04-14 17:43:05 +01:00 committed by hynet-mel
parent 9056321750
commit 25c205fe4c

View file

@ -644,7 +644,9 @@ const users = {
store.dispatch('listSettingsProfiles')
store.dispatch('startFetchingConfig')
store.dispatch('startFetchingAnnouncements')
if (user.role === 'admin' || user.role === 'moderator') {
store.dispatch('startFetchingReports')
}
// Fetch our friends
store.rootState.api.backendInteractor.fetchFriends({ id: user.id })