mirror of
https://github.com/advplyr/audiobookshelf-app.git
synced 2025-06-30 00:54:39 +02:00
Fix:Hide download button if user does not have download permission #189
This commit is contained in:
parent
cb6cb5f637
commit
236fd09c94
4 changed files with 14 additions and 8 deletions
|
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue