From 9cbb8ddd7fd1e825f7153b8edc594e0b3d2431f8 Mon Sep 17 00:00:00 2001 From: Garfield Dai Date: Thu, 25 Apr 2024 21:55:08 +0800 Subject: [PATCH] fix: billing tenant account role. (#3850) --- api/services/billing_service.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/services/billing_service.py b/api/services/billing_service.py index 4e791d075b..539f2712bb 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')