mirror of
https://github.com/langgenius/dify.git
synced 2026-05-06 02:18:08 +08:00
feat: remove extra judgement
This commit is contained in:
@ -329,9 +329,6 @@ class TenantService:
|
||||
@staticmethod
|
||||
def create_owner_tenant_if_not_exist(account: Account):
|
||||
"""Create owner tenant if not exist"""
|
||||
if not dify_config.ALLOW_CREATE_WORKSPACE:
|
||||
raise Unauthorized("Create workspace is not allowed.")
|
||||
|
||||
available_ta = (
|
||||
TenantAccountJoin.query.filter_by(account_id=account.id).order_by(TenantAccountJoin.id.asc()).first()
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user