mirror of
https://github.com/langgenius/dify.git
synced 2026-09-02 06:03:18 +08:00
chore: lint
This commit is contained in:
parent
01d1caecf7
commit
f6297109cf
@ -421,7 +421,7 @@ class TenantService:
|
||||
if TenantService.has_roles(tenant, [TenantAccountJoinRole.OWNER]):
|
||||
logging.error(f"Tenant {tenant.id} has already an owner.")
|
||||
raise Exception("Tenant already has an owner.")
|
||||
|
||||
|
||||
ta = db.session.query(TenantAccountJoin).filter_by(tenant_id=tenant.id, account_id=account.id).first()
|
||||
if ta:
|
||||
ta.role = role
|
||||
|
||||
Loading…
Reference in New Issue
Block a user