fix: billing tenant account role. (#3850)

This commit is contained in:
Garfield Dai 2024-04-25 21:55:08 +08:00 committed by GitHub
parent 1be222af2e
commit 9cbb8ddd7f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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