mirror of
https://github.com/Novartis/cellxgene-gateway.git
synced 2026-10-10 02:40:56 +08:00
#42 add support for is_authorized hook
This commit is contained in:
@@ -113,6 +113,9 @@ class S3ItemSource(ItemSource):
|
||||
def update(self, item: S3Item) -> None:
|
||||
pass
|
||||
|
||||
def is_authorized(self, descriptor):
|
||||
return True
|
||||
|
||||
def lookup_item(self, descriptor):
|
||||
full_path = self.url(descriptor)
|
||||
if self.is_h5ad_url(full_path):
|
||||
|
||||
Reference in New Issue
Block a user