fix: ContractAttachMgr 覆盖 owner/quota 校验
is_folder_ownerid: 直接返回 True (合同附件不校验owner) get_organization_quota: 无限制配额
This commit is contained in:
parent
b375ba5155
commit
587cabeb1e
@ -16,7 +16,18 @@ from filemgr.filemgr import FileMgr
|
|||||||
|
|
||||||
class ContractAttachMgr(FileMgr):
|
class ContractAttachMgr(FileMgr):
|
||||||
"""Supplychain attachment manager — fiid from params_kw."""
|
"""Supplychain attachment manager — fiid from params_kw."""
|
||||||
|
|
||||||
|
def get_folder_ownerid(self, sor):
|
||||||
|
"""Contract folders are org-scoped, return owner for comparison."""
|
||||||
pass
|
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"
|
MODULE_NAME = "supplychain"
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user