From 98e9cc5275f56f6649a2be782ec471189464526c Mon Sep 17 00:00:00 2001 From: Xiyuan Chen <52963600+GareArc@users.noreply.github.com> Date: Tue, 6 May 2025 22:42:27 -0400 Subject: [PATCH] Update api/services/account_service.py Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- api/services/account_service.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/services/account_service.py b/api/services/account_service.py index 8f4f19dd90..df012b7e40 100644 --- a/api/services/account_service.py +++ b/api/services/account_service.py @@ -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: