mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-15 00:35:58 +08:00
Update api/services/account_service.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
parent
1e5bf958ec
commit
98e9cc5275
@ -792,7 +792,7 @@ class TenantService:
|
||||
if not ta_operator or ta_operator.role not in perms[action]:
|
||||
raise NoPermissionError(f"No permission to {action} member.")
|
||||
|
||||
# Admin cannot remove or update other admin and the owner
|
||||
# Restriction: Admins cannot remove or update other admins or the owner
|
||||
if action in {"remove", "update"}:
|
||||
if ta_operator.role == TenantAccountRole.ADMIN:
|
||||
if member:
|
||||
|
Loading…
x
Reference in New Issue
Block a user