fix(panel): 本人与所有者账户的禁用和删除按钮提前锁定并说明原因,角色改为只读,后端拒绝改用专用错误码 self_protected 与 owner_protected
This commit is contained in:
13 files changed
+269
-27
No files matched your search
@@ -822,6 +822,12 @@ export function humanizeError(e: unknown): string {
|
||||
return t("passkey_unavailable");
|
||||
case "last_passkey":
|
||||
return t("last_passkey");
|
||||
// User admin (internal/api/handlers_users.go): the caller's own account and
|
||||
// the owner account are refused, each for its own reason.
|
||||
case "self_protected":
|
||||
return t("self_protected");
|
||||
case "owner_protected":
|
||||
return t("owner_protected");
|
||||
case "quota_exceeded":
|
||||
return t("quota_exceeded");
|
||||
case "already_claimed":
|
||||
|
||||
Reference in new issue
Block a user