You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Users are able to see items in the filter list even if they don't have access to the list, such as "Authors", "Series", "Tag", etc. The function getFilterData creates the filter based on the library without taking user access into account.
I limited this user to only view the "Science Fiction" tag, which for example should not show "Fantasy" or "Brandon Sanderson".
What did you expect to happen?
Filter information by user similar to other parts of the API.
A potential solution is to add a user parameter to filter the data and have user specific caches for the filter data for each library.
Steps to reproduce the issue
Create a user
Limit user access by tags
Use the "filter" dropdown to see tags they shouldn't be able to see, along with other fields
Audiobookshelf version
v2.16.1
How are you running audiobookshelf?
Built from source
What OS is your Audiobookshelf server hosted from?
Linux
If the issue is being seen in the UI, what browsers are you seeing the problem on?
What happened?
Users are able to see items in the filter list even if they don't have access to the list, such as "Authors", "Series", "Tag", etc. The function
getFilterData
creates the filter based on the library without taking user access into account.I limited this user to only view the "Science Fiction" tag, which for example should not show "Fantasy" or "Brandon Sanderson".
What did you expect to happen?
Filter information by user similar to other parts of the API.
A potential solution is to add a user parameter to filter the data and have user specific caches for the filter data for each library.
Steps to reproduce the issue
Audiobookshelf version
v2.16.1
How are you running audiobookshelf?
Built from source
What OS is your Audiobookshelf server hosted from?
Linux
If the issue is being seen in the UI, what browsers are you seeing the problem on?
None
Logs
Additional Notes
The above log is an additional debug printout
Logger.debug('Filter data:', data)
togetFilterData
https://github.com/advplyr/audiobookshelf/blob/50fd659749128a321ecc3284e128d014433145a9/server/utils/queries/libraryFilters.js#L435C1-L548C4The text was updated successfully, but these errors were encountered: