Ver código fonte

fix: billing tenant account role. (#3850)

tags/0.6.6
Garfield Dai 1 ano atrás
pai
commit
9cbb8ddd7f
Nenhuma conta vinculada ao e-mail do autor do commit
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1
    1
      api/services/billing_service.py

+ 1
- 1
api/services/billing_service.py Ver arquivo

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

Carregando…
Cancelar
Salvar