Преглед на файлове

fix: billing tenant account role. (#3850)

tags/0.6.6
Garfield Dai преди 1 година
родител
ревизия
9cbb8ddd7f
No account linked to committer's email address
променени са 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')

Loading…
Отказ
Запис