mirror of
https://github.com/Novartis/cellxgene-gateway.git
synced 2026-10-09 01:48:12 +08:00
#42 add support for is_authorized hook
This commit is contained in:
@@ -40,6 +40,10 @@ class ItemSource(ABC):
|
||||
def update(self, item: Item) -> None:
|
||||
raise Exception('"update" unimplemented')
|
||||
|
||||
@abstractmethod
|
||||
def is_authorized(self, descriptor: str) -> bool:
|
||||
raise Exception('"is_authorized" unimplemented')
|
||||
|
||||
@abstractmethod
|
||||
def lookup(self, descriptor: str) -> LookupResult:
|
||||
raise Exception('"lookup" unimplemented')
|
||||
|
||||
Reference in New Issue
Block a user