mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-07-13 10:55:05 +02:00
Explicit library filter not shown for users without permission
This commit is contained in:
parent
5336d0525e
commit
af684e6a69
2 changed files with 26 additions and 11 deletions
|
@ -58,6 +58,9 @@ export const getters = {
|
|||
getUserCanAccessAllLibraries: (state) => {
|
||||
return !!state.user?.permissions?.accessAllLibraries
|
||||
},
|
||||
getUserCanAccessExplicitContent: (state) => {
|
||||
return !!state.user?.permissions?.accessExplicitContent
|
||||
},
|
||||
getLibrariesAccessible: (state, getters) => {
|
||||
if (!state.user) return []
|
||||
if (getters.getUserCanAccessAllLibraries) return []
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue