fix: ContractAttachMgr 覆盖 owner/quota 校验

is_folder_ownerid: 直接返回 True (合同附件不校验owner)
get_organization_quota: 无限制配额
This commit is contained in:
yumoqing 2026-07-03 17:18:03 +08:00
parent b375ba5155
commit 587cabeb1e

View File

@ -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"