浏览代码

fix: billing tenant account role. (#3850)

tags/0.6.6
Garfield Dai 1年前
父节点
当前提交
9cbb8ddd7f
没有帐户链接到提交者的电子邮件
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      api/services/billing_service.py

+ 1
- 1
api/services/billing_service.py 查看文件

TenantAccountJoin.account_id == current_user.id TenantAccountJoin.account_id == current_user.id
).first() ).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') raise ValueError('Only team owner or team admin can perform this action')

正在加载...
取消
保存