Fix:Hide download button if user does not have download permission #189

This commit is contained in:
advplyr
2022-05-22 15:49:42 -05:00
parent cb6cb5f637
commit 236fd09c94
4 changed files with 14 additions and 8 deletions
+3
View File
@@ -35,6 +35,9 @@ export const getters = {
},
getUserSetting: (state) => (key) => {
return state.settings ? state.settings[key] || null : null
},
getUserCanDownload: (state) => {
return state.user && state.user.permissions ? !!state.user.permissions.download : false
}
}