소스 검색

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