Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

fix: billing tenant account role. (#3850)

Garfield Dai9cbb8ddd7fd1
diff --git a/api/services/billing_service.py b/api/services/billing_service.py
index 4e791d075bd..539f2712bb9 100644
--- a/api/services/billing_service.py
+++ b/api/services/billing_service.py
@@ -74,5 +74,5 @@ class BillingService:
TenantAccountJoin.account_id == current_user.id
).first()
- if TenantAccountRole.is_privileged_role(join.role):
+ if not TenantAccountRole.is_privileged_role(join.role):
raise ValueError('Only team owner or team admin can perform this action')