Mobileread
Virtual Libraries don't show in content server permissions?
#1  spedinfargo 07-15-2019, 12:24 AM
I created a new user for the content server and want to restrict access so that it only has access to a virtual library - in reading previous messages on this topic it seems that this should be possible.

But when I go to User Accounts and then "Restrict the libraries this user can access" i have the "Allow access to" drop down and it has three values:

All Libraries
Only the specified libraries
All except the specified libraries

However, when I click on "only the specified libraries" I only get one selection: my main library ("Calibre library").

Is there a reason that my virtual libraries don't show up in that list? Is there a way to restrict a user to only a specified virtual library?
Reply 

#2  kovidgoyal 07-15-2019, 01:02 AM
Virtual libraries are just search expressions, you can enter an arbitrary search expression under each allowed library to further restrict the user to only books that match that search expression.
Reply 

#3  spedinfargo 07-15-2019, 02:13 PM
Cool - that makes sense and worked. I just copied over my search query from where I had the virtual library defined. I guess that might be a feature request for some day - add the list of virtual libraries to the list of selectable libraries on that window.

Thanks for the quick reply!
Reply 

#4  chaley 07-16-2019, 05:25 PM
You can specify a virtual library in a search expression, avoiding copying the underlying search. See https://manual.calibre-ebook.com/virtual_libraries.html#using-virtual-libraries-in-searches. Note that the virtual library name is case sensitive.
Reply 

Today's Posts | Search this Thread | Login | Register