diff --git a/supplychain/init.py b/supplychain/init.py index 2ba627e..d8281b3 100644 --- a/supplychain/init.py +++ b/supplychain/init.py @@ -16,7 +16,18 @@ from filemgr.filemgr import FileMgr class ContractAttachMgr(FileMgr): """Supplychain attachment manager — fiid from params_kw.""" - pass + + def get_folder_ownerid(self, sor): + """Contract folders are org-scoped, return owner for comparison.""" + pass + + async def is_folder_ownerid(self, sor, orgid): + """Allow any logined user to upload to contract folders.""" + return True + + async def get_organization_quota(self, sor, orgid): + """Unlimited quota for contract attachments.""" + return 0, '9999-12-31' MODULE_NAME = "supplychain"