fix(panel): 本人与所有者账户的禁用和删除按钮提前锁定并说明原因,角色改为只读,后端拒绝改用专用错误码 self_protected 与 owner_protected
This commit is contained in:
13 files changed
+269
-27
No files matched your search
@@ -172,6 +172,8 @@
|
||||
"users_field_username": "Username",
|
||||
"users_field_email": "Email",
|
||||
"users_field_role": "Role",
|
||||
"users_role_locked_self": "You can't change your own role.",
|
||||
"users_role_locked_owner": "The owner's role is fixed. Only the host's break-glass console (sudo felis breakGlass) manages the owner.",
|
||||
"users_save_btn": "Save Changes",
|
||||
"users_save_ok": "Changes saved successfully.",
|
||||
"users_linked_accounts": "Linked Minecraft Accounts",
|
||||
@@ -203,6 +205,8 @@
|
||||
"users_session_revoke_all_dlg_desc": "Are you sure you want to revoke all active sessions? The user will be logged out from every device.",
|
||||
"users_session_revoke_confirm": "Revoke",
|
||||
"users_danger_zone": "Danger Zone",
|
||||
"users_protected_self": "You can't disable or delete the account you're signed in with.",
|
||||
"users_protected_owner": "The owner account can't be disabled or deleted from the panel. Only the host's break-glass console (sudo felis breakGlass) manages it.",
|
||||
"users_danger_disable": "Disable User",
|
||||
"users_danger_disable_desc": "Prevent this user from logging in. All active sessions will be revoked immediately.",
|
||||
"users_danger_disable_btn": "Disable User",
|
||||
|
||||
@@ -27,6 +27,8 @@
|
||||
"restore_unavailable": "Restore isn't available right now — try again later.",
|
||||
"session_expired": "Your session expired — please sign in again.",
|
||||
"forbidden": "You are not allowed to do that.",
|
||||
"self_protected": "You can't do that to the account you're signed in with.",
|
||||
"owner_protected": "The owner account can't be demoted, disabled or deleted from the panel. Only the host's break-glass console (sudo felis breakGlass) manages it.",
|
||||
"generic": "Something went wrong.",
|
||||
"otp_resend_cooldown": "Verification code requested too frequently, please try again later.",
|
||||
"otp_locked": "Too many incorrect attempts, please request a new verification code.",
|
||||
|
||||
@@ -172,6 +172,8 @@
|
||||
"users_field_username": "用户名",
|
||||
"users_field_email": "邮箱",
|
||||
"users_field_role": "角色",
|
||||
"users_role_locked_self": "不能修改自己的角色。",
|
||||
"users_role_locked_owner": "所有者的角色是固定的,只能在主机的应急控制台(sudo felis breakGlass)上管理。",
|
||||
"users_save_btn": "保存更改",
|
||||
"users_save_ok": "更改保存成功。",
|
||||
"users_linked_accounts": "已关联的 Minecraft 账号",
|
||||
@@ -203,6 +205,8 @@
|
||||
"users_session_revoke_all_dlg_desc": "确定撤销所有活跃会话吗?用户将从所有设备登出。",
|
||||
"users_session_revoke_confirm": "撤销",
|
||||
"users_danger_zone": "危险操作区",
|
||||
"users_protected_self": "不能禁用或删除当前登录的账号。",
|
||||
"users_protected_owner": "所有者账号不能在面板里禁用或删除,只能在主机的应急控制台(sudo felis breakGlass)上管理。",
|
||||
"users_danger_disable": "禁用用户",
|
||||
"users_danger_disable_desc": "阻止此用户登录。所有活跃会话将被立即撤销。",
|
||||
"users_danger_disable_btn": "禁用用户",
|
||||
|
||||
@@ -27,6 +27,8 @@
|
||||
"restore_unavailable": "回档功能当前不可用,请稍后再试。",
|
||||
"session_expired": "会话已过期——请重新登录。",
|
||||
"forbidden": "你无权执行此操作。",
|
||||
"self_protected": "不能对当前登录的账号执行此操作。",
|
||||
"owner_protected": "所有者账号不能在面板里降级、禁用或删除,只能在主机的应急控制台(sudo felis breakGlass)上管理。",
|
||||
"generic": "出了点问题,请稍后重试。",
|
||||
"otp_resend_cooldown": "验证码发送频繁,请稍后再试。",
|
||||
"otp_locked": "验证码错误次数过多,请重新获取验证码。",
|
||||
|
||||
Reference in new issue
Block a user