This commit is contained in:
Kovid Goyal 2017-04-13 11:09:54 +05:30
parent dd3150d975
commit 6549baf27e
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -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: