diff --git a/llmage/accounting.py b/llmage/accounting.py index c1e8eed..a739804 100644 --- a/llmage/accounting.py +++ b/llmage/accounting.py @@ -18,7 +18,7 @@ async def checkCustomerBalance(llmid, userorgid): if llms[0].ownerid == userorgid: return True balance = await getCustomerBalance(sor, userorgid) - return llms[0].min_balance < balance + return llms[0].ppid and llms[0].min_balance < balance return False async def llm_accounting(request, llmid,