瀏覽代碼

fix: billing tenant account role. (#3850)

Garfield Dai 11 月之前
父節點
當前提交
9cbb8ddd7f
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      api/services/billing_service.py

+ 1 - 1
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')