mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
dd3150d975
commit
6549baf27e
@ -60,8 +60,6 @@ class Context(object):
|
|||||||
return self.library_broker.library_map, self.library_broker.default_library
|
return self.library_broker.library_map, self.library_broker.default_library
|
||||||
|
|
||||||
def allowed_book_ids(self, data, db):
|
def allowed_book_ids(self, data, db):
|
||||||
# TODO: Implement this based on data.username for per-user
|
|
||||||
# restrictions. Cache result on the data object
|
|
||||||
with self.lock:
|
with self.lock:
|
||||||
ans = data.allowed_book_ids.get(db.server_library_id)
|
ans = data.allowed_book_ids.get(db.server_library_id)
|
||||||
if ans is None:
|
if ans is None:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user