This commit is contained in:
Kovid Goyal
2017-04-13 11:09:54 +05:30
parent dd3150d975
commit 6549baf27e
-2
View File
@@ -60,8 +60,6 @@ class Context(object):
return self.library_broker.library_map, self.library_broker.default_library
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:
ans = data.allowed_book_ids.get(db.server_library_id)
if ans is None: