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
Created a new user with or without access control by tags. A warning is incorrectly logged, but access control is correctly applied.
Investigating in the code, looks like this is specifically due to line 162 because the selectedTagNotAccessible is an array and handled before the loop over the request keys. Note that this only applies for tags, access control by libraries does not generate this warning.
nichwall
changed the title
[Bug]: [UserController] create: Invalid permission key: selectedTagsNotAccessible
[Bug]: Creating new user incorrectly generates warning for tag access control
Sep 2, 2024
What happened?
Created a new user with or without access control by tags. A warning is incorrectly logged, but access control is correctly applied.
Investigating in the code, looks like this is specifically due to line 162 because the
selectedTagNotAccessible
is an array and handled before the loop over the request keys. Note that this only applies for tags, access control by libraries does not generate this warning.audiobookshelf/server/controllers/UserController.js
Lines 141 to 168 in 48f2327
What did you expect to happen?
No warning for creating/updating a user with tag access control.
Steps to reproduce the issue
Audiobookshelf version
v2.13.2
How are you running audiobookshelf?
Docker
What OS is your Audiobookshelf server hosted from?
Other (list in "Additional Notes" box)
If the issue is being seen in the UI, what browsers are you seeing the problem on?
None
Logs
Additional Notes
Synology NAS
The text was updated successfully, but these errors were encountered: