#42 add support for is_authorized hook

This commit is contained in:
Alok Saldanha
2021-11-14 17:28:10 -05:00
parent 620181ae4d
commit 551cb46af8
5 changed files with 17 additions and 2 deletions
@@ -121,6 +121,9 @@ class FileItemSource(ItemSource):
if self.is_h5ad_file(full_path):
return self.shallowitem_from_descriptor(descriptor)
def is_authorized(self, descriptor):
return True
def lookup(self, indescriptor: str) -> LookupResult:
descriptor = indescriptor.strip("/")
if descriptor.endswith(self.annotation_file_suffix):