diff --git a/apps/assets/serializers/cmd_filter.py b/apps/assets/serializers/cmd_filter.py index 1d798d7eb..a57fab72a 100644 --- a/apps/assets/serializers/cmd_filter.py +++ b/apps/assets/serializers/cmd_filter.py @@ -12,13 +12,11 @@ from terminal.models import Session class CommandFilterSerializer(BulkOrgResourceModelSerializer): - class Meta: model = CommandFilter fields_mini = ['id', 'name'] fields_small = fields_mini + [ - 'org_id', 'org_name', - 'is_active', + 'org_id', 'org_name', 'is_active', 'date_created', 'date_updated', 'comment', 'created_by', ] @@ -26,7 +24,9 @@ class CommandFilterSerializer(BulkOrgResourceModelSerializer): fields_m2m = ['users', 'user_groups', 'system_users', 'assets', 'applications'] fields = fields_small + fields_fk + fields_m2m extra_kwargs = { - 'rules': {'read_only': True} + 'rules': {'read_only': True}, + 'date_created': {'label': _("Date created")}, + 'date_updated': {'label': _("Date updated")}, } @@ -45,6 +45,11 @@ class CommandFilterRuleSerializer(BulkOrgResourceModelSerializer): ] fields_fk = ['filter'] fields = fields_small + fields_fk + extra_kwargs = { + 'date_created': {'label': _("Date created")}, + 'date_updated': {'label': _("Date updated")}, + 'action_display': {'label': _("Action display")} + } def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) diff --git a/apps/locale/zh/LC_MESSAGES/django.mo b/apps/locale/zh/LC_MESSAGES/django.mo index e3a5c3882..a3e26b6ec 100644 --- a/apps/locale/zh/LC_MESSAGES/django.mo +++ b/apps/locale/zh/LC_MESSAGES/django.mo @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:5775daad77f39025e7ddd39f04fdc0cb67c9537754caa3b0b520421df65e5041 -size 104739 +oid sha256:43b38f824f3e62af12575cc853ec0ad7f9b0ac935e1d99116ebe3ddb6c93485c +size 104599 diff --git a/apps/locale/zh/LC_MESSAGES/django.po b/apps/locale/zh/LC_MESSAGES/django.po index 7922f9a31..6d166475b 100644 --- a/apps/locale/zh/LC_MESSAGES/django.po +++ b/apps/locale/zh/LC_MESSAGES/django.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: JumpServer 0.3.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-03-16 20:38+0800\n" +"POT-Creation-Date: 2022-03-17 15:19+0800\n" "PO-Revision-Date: 2021-05-20 10:54+0800\n" "Last-Translator: ibuler \n" "Language-Team: JumpServer team\n" @@ -30,7 +30,7 @@ msgstr "访问控制" #: settings/models.py:29 settings/serializers/sms.py:6 #: terminal/models/storage.py:23 terminal/models/task.py:16 #: terminal/models/terminal.py:100 users/forms/profile.py:32 -#: users/models/group.py:15 users/models/user.py:574 +#: users/models/group.py:15 users/models/user.py:584 #: users/templates/users/_select_user_modal.html:13 #: users/templates/users/user_asset_permission.html:37 #: users/templates/users/user_asset_permission.html:154 @@ -66,7 +66,7 @@ msgstr "激活中" #: perms/models/base.py:93 rbac/models/role.py:37 settings/models.py:34 #: terminal/models/storage.py:26 terminal/models/terminal.py:114 #: tickets/models/comment.py:24 tickets/models/ticket.py:154 -#: users/models/group.py:16 users/models/user.py:611 +#: users/models/group.py:16 users/models/user.py:621 #: xpack/plugins/change_auth_plan/models/base.py:44 #: xpack/plugins/cloud/models.py:35 xpack/plugins/cloud/models.py:116 #: xpack/plugins/gathered_user/models.py:26 @@ -90,12 +90,12 @@ msgstr "登录复核" #: assets/models/cmd_filter.py:30 assets/models/label.py:15 audits/models.py:37 #: audits/models.py:60 audits/models.py:85 audits/serializers.py:100 #: authentication/models.py:50 orgs/models.py:214 perms/models/base.py:84 -#: rbac/builtin.py:97 rbac/models/rolebinding.py:39 templates/index.html:78 +#: rbac/builtin.py:101 rbac/models/rolebinding.py:39 templates/index.html:78 #: terminal/backends/command/models.py:19 #: terminal/backends/command/serializers.py:12 terminal/models/session.py:42 -#: terminal/notifications.py:88 terminal/notifications.py:136 -#: tickets/models/comment.py:17 users/const.py:14 users/models/user.py:795 -#: users/models/user.py:826 users/serializers/group.py:19 +#: terminal/notifications.py:91 terminal/notifications.py:139 +#: tickets/models/comment.py:17 users/const.py:14 users/models/user.py:809 +#: users/models/user.py:840 users/serializers/group.py:19 #: users/templates/users/user_asset_permission.html:38 #: users/templates/users/user_asset_permission.html:64 #: users/templates/users/user_database_app_permission.html:37 @@ -141,7 +141,7 @@ msgstr "系统用户" #: audits/models.py:39 perms/models/asset_permission.py:23 #: templates/index.html:82 terminal/backends/command/models.py:20 #: terminal/backends/command/serializers.py:13 terminal/models/session.py:44 -#: terminal/notifications.py:87 +#: terminal/notifications.py:90 #: users/templates/users/user_asset_permission.html:40 #: users/templates/users/user_asset_permission.html:70 #: xpack/plugins/change_auth_plan/models/asset.py:199 @@ -168,7 +168,7 @@ msgstr "格式为逗号分隔的字符串, * 表示匹配所有. " #: authentication/forms.py:15 authentication/forms.py:17 #: authentication/templates/authentication/_msg_different_city.html:9 #: authentication/templates/authentication/_msg_oauth_bind.html:9 -#: ops/models/adhoc.py:159 users/forms/profile.py:31 users/models/user.py:572 +#: ops/models/adhoc.py:159 users/forms/profile.py:31 users/models/user.py:582 #: users/templates/users/_msg_user_created.html:12 #: users/templates/users/_select_user_modal.html:14 #: xpack/plugins/change_auth_plan/models/asset.py:34 @@ -341,6 +341,7 @@ msgid "Domain" msgstr "网域" #: applications/models/application.py:220 xpack/plugins/cloud/models.py:33 +#: xpack/plugins/cloud/serializers/account.py:57 msgid "Attrs" msgstr "属性" @@ -373,16 +374,18 @@ msgstr "类型名称" #: assets/models/base.py:181 assets/models/cluster.py:26 #: assets/models/domain.py:26 assets/models/gathered_user.py:19 #: assets/models/group.py:22 assets/models/label.py:25 -#: assets/serializers/account.py:18 common/db/models.py:113 +#: assets/serializers/account.py:18 assets/serializers/cmd_filter.py:28 +#: assets/serializers/cmd_filter.py:49 common/db/models.py:113 #: common/mixins/models.py:50 ops/models/adhoc.py:39 ops/models/command.py:30 #: orgs/models.py:67 orgs/models.py:217 perms/models/base.py:92 -#: users/models/group.py:18 users/models/user.py:827 +#: users/models/group.py:18 users/models/user.py:841 #: xpack/plugins/cloud/models.py:125 msgid "Date created" msgstr "创建日期" #: applications/serializers/application.py:104 assets/models/base.py:182 #: assets/models/gathered_user.py:20 assets/serializers/account.py:21 +#: assets/serializers/cmd_filter.py:29 assets/serializers/cmd_filter.py:50 #: common/db/models.py:114 common/mixins/models.py:51 ops/models/adhoc.py:40 #: orgs/models.py:218 msgid "Date updated" @@ -607,7 +610,7 @@ msgid "Is active" msgstr "激活" #: assets/models/asset.py:222 assets/models/cluster.py:19 -#: assets/models/user.py:222 assets/models/user.py:380 +#: assets/models/user.py:222 assets/models/user.py:377 msgid "Admin user" msgstr "特权用户" @@ -627,7 +630,7 @@ msgstr "标签管理" #: assets/models/cluster.py:28 assets/models/cmd_filter.py:52 #: assets/models/cmd_filter.py:99 assets/models/group.py:21 #: common/db/models.py:111 common/mixins/models.py:49 orgs/models.py:66 -#: orgs/models.py:219 perms/models/base.py:91 users/models/user.py:619 +#: orgs/models.py:219 perms/models/base.py:91 users/models/user.py:629 #: users/serializers/group.py:33 #: xpack/plugins/change_auth_plan/models/base.py:48 #: xpack/plugins/cloud/models.py:122 xpack/plugins/gathered_user/models.py:30 @@ -808,7 +811,7 @@ msgstr "带宽" msgid "Contact" msgstr "联系人" -#: assets/models/cluster.py:22 users/models/user.py:594 +#: assets/models/cluster.py:22 users/models/user.py:604 msgid "Phone" msgstr "手机" @@ -834,7 +837,7 @@ msgid "Default" msgstr "默认" #: assets/models/cluster.py:36 assets/models/label.py:14 rbac/const.py:6 -#: users/models/user.py:812 +#: users/models/user.py:826 msgid "System" msgstr "系统" @@ -843,7 +846,7 @@ msgid "Default Cluster" msgstr "默认Cluster" #: assets/models/cmd_filter.py:34 perms/models/base.py:86 -#: users/models/group.py:31 users/models/user.py:580 +#: users/models/group.py:31 users/models/user.py:590 #: users/templates/users/_select_user_modal.html:16 #: users/templates/users/user_asset_permission.html:39 #: users/templates/users/user_asset_permission.html:67 @@ -1060,18 +1063,6 @@ msgid "Switch from" msgstr "切换自" #: assets/models/user.py:327 -msgid "Can view system user asset" -msgstr "可以查看系统用户资产列表" - -#: assets/models/user.py:328 -msgid "Can add asset to system user" -msgstr "可以添加资产到系统用户" - -#: assets/models/user.py:329 -msgid "Can remove system user asset" -msgstr "可以移除系统用户资产" - -#: assets/models/user.py:330 msgid "Can match system user" msgstr "可以匹配系统用户" @@ -1162,6 +1153,12 @@ msgstr "密钥密码" msgid "private key invalid or passphrase error" msgstr "密钥不合法或密钥密码错误" +#: assets/serializers/cmd_filter.py:51 +#, fuzzy +#| msgid "Application display" +msgid "Action display" +msgstr "应用名称" + #: assets/serializers/domain.py:13 assets/serializers/label.py:12 #: assets/serializers/system_user.py:59 #: perms/serializers/asset/permission.py:49 @@ -1384,7 +1381,7 @@ msgstr "日志审计" #: audits/models.py:27 audits/models.py:57 #: authentication/templates/authentication/_access_key_modal.html:65 -#: rbac/tree.py:162 users/templates/users/user_asset_permission.html:128 +#: rbac/tree.py:167 users/templates/users/user_asset_permission.html:128 #: users/templates/users/user_database_app_permission.html:111 msgid "Delete" msgstr "删除" @@ -1438,11 +1435,11 @@ msgstr "文件管理" #: audits/models.py:55 #: authentication/templates/authentication/_access_key_modal.html:22 -#: rbac/tree.py:159 +#: rbac/tree.py:164 msgid "Create" msgstr "创建" -#: audits/models.py:56 rbac/tree.py:161 templates/_csv_import_export.html:18 +#: audits/models.py:56 rbac/tree.py:166 templates/_csv_import_export.html:18 #: templates/_csv_update_modal.html:6 #: users/templates/users/user_asset_permission.html:127 #: users/templates/users/user_database_app_permission.html:110 @@ -1506,7 +1503,7 @@ msgstr "用户代理" #: audits/models.py:124 #: authentication/templates/authentication/_mfa_confirm_modal.html:14 -#: users/forms/profile.py:64 users/models/user.py:597 +#: users/forms/profile.py:64 users/models/user.py:607 #: users/serializers/profile.py:121 msgid "MFA" msgstr "MFA" @@ -1584,13 +1581,13 @@ msgstr "认证令牌" #: audits/signal_handlers.py:71 authentication/notifications.py:73 #: authentication/views/login.py:164 authentication/views/wecom.py:158 -#: notifications/backends/__init__.py:11 users/models/user.py:633 +#: notifications/backends/__init__.py:11 users/models/user.py:643 msgid "WeCom" msgstr "企业微信" #: audits/signal_handlers.py:72 authentication/views/dingtalk.py:160 #: authentication/views/login.py:170 notifications/backends/__init__.py:12 -#: users/models/user.py:634 +#: users/models/user.py:644 msgid "DingTalk" msgstr "钉钉" @@ -2111,7 +2108,7 @@ msgid "Secret" msgstr "密钥" #: authentication/templates/authentication/_access_key_modal.html:33 -#: terminal/notifications.py:90 terminal/notifications.py:138 +#: terminal/notifications.py:93 terminal/notifications.py:141 msgid "Date" msgstr "日期" @@ -2121,14 +2118,14 @@ msgid "Show" msgstr "显示" #: authentication/templates/authentication/_access_key_modal.html:66 -#: settings/serializers/security.py:39 users/models/user.py:469 +#: settings/serializers/security.py:39 users/models/user.py:479 #: users/serializers/profile.py:111 users/templates/users/mfa_setting.html:61 #: users/templates/users/user_verify_mfa.html:36 msgid "Disable" msgstr "禁用" #: authentication/templates/authentication/_access_key_modal.html:67 -#: users/models/user.py:470 users/serializers/profile.py:112 +#: users/models/user.py:480 users/serializers/profile.py:112 #: users/templates/users/mfa_setting.html:26 #: users/templates/users/mfa_setting.html:68 msgid "Enable" @@ -2377,7 +2374,7 @@ msgid "The FeiShu is already bound to another user" msgstr "该飞书已经绑定其他用户" #: authentication/views/feishu.py:148 authentication/views/login.py:176 -#: notifications/backends/__init__.py:14 users/models/user.py:635 +#: notifications/backends/__init__.py:14 users/models/user.py:645 msgid "FeiShu" msgstr "飞书" @@ -2672,7 +2669,7 @@ msgid "Notifications" msgstr "通知" #: notifications/backends/__init__.py:10 users/forms/profile.py:101 -#: users/models/user.py:576 +#: users/models/user.py:586 msgid "Email" msgstr "邮件" @@ -2879,7 +2876,7 @@ msgstr "当前组织 ({}) 不能被删除" msgid "The organization have resource ({}) cannot be deleted" msgstr "组织存在资源 ({}) 不能被删除" -#: orgs/apps.py:7 rbac/tree.py:110 +#: orgs/apps.py:7 rbac/tree.py:113 msgid "App organizations" msgstr "组织管理" @@ -2898,7 +2895,7 @@ msgid "Can view root org" msgstr "可以查看全局组织" #: orgs/models.py:216 rbac/models/role.py:46 rbac/models/rolebinding.py:42 -#: users/models/user.py:584 users/templates/users/_select_user_modal.html:15 +#: users/models/user.py:594 users/templates/users/_select_user_modal.html:15 msgid "Role" msgstr "角色" @@ -2997,7 +2994,7 @@ msgstr "剪贴板复制粘贴" #: perms/models/base.py:90 #: tickets/serializers/ticket/meta/ticket_type/apply_application.py:58 #: tickets/serializers/ticket/meta/ticket_type/apply_asset.py:60 -#: users/models/user.py:616 +#: users/models/user.py:626 msgid "Date expired" msgstr "失效日期" @@ -3040,15 +3037,15 @@ msgstr "组织 ({}) 的应用授权" #: perms/serializers/application/permission.py:20 #: perms/serializers/application/permission.py:41 #: perms/serializers/asset/permission.py:19 -#: perms/serializers/asset/permission.py:45 users/serializers/user.py:139 +#: perms/serializers/asset/permission.py:45 users/serializers/user.py:137 msgid "Is valid" msgstr "账号是否有效" #: perms/serializers/application/permission.py:21 #: perms/serializers/application/permission.py:40 #: perms/serializers/asset/permission.py:20 -#: perms/serializers/asset/permission.py:44 users/serializers/user.py:85 -#: users/serializers/user.py:141 +#: perms/serializers/asset/permission.py:44 users/serializers/user.py:83 +#: users/serializers/user.py:139 msgid "Is expired" msgstr "已过期" @@ -3130,27 +3127,27 @@ msgstr "{} 至少有一个系统角色" msgid "RBAC" msgstr "RBAC" -#: rbac/builtin.py:89 +#: rbac/builtin.py:92 msgid "SystemAdmin" msgstr "系统管理员" -#: rbac/builtin.py:92 +#: rbac/builtin.py:95 msgid "SystemAuditor" msgstr "系统审计员" -#: rbac/builtin.py:95 +#: rbac/builtin.py:98 msgid "SystemComponent" msgstr "系统组件" -#: rbac/builtin.py:101 +#: rbac/builtin.py:104 msgid "OrgAdmin" msgstr "组织管理员" -#: rbac/builtin.py:104 +#: rbac/builtin.py:107 msgid "OrgAuditor" msgstr "组织审计员" -#: rbac/builtin.py:107 +#: rbac/builtin.py:110 msgid "OrgUser" msgstr "组织用户" @@ -3220,7 +3217,7 @@ msgstr "组织角色绑定" msgid "System role binding" msgstr "系统角色绑定" -#: rbac/serializers/permission.py:26 users/serializers/profile.py:125 +#: rbac/serializers/permission.py:26 users/serializers/profile.py:126 msgid "Perms" msgstr "权限" @@ -3240,91 +3237,91 @@ msgstr "角色显示" msgid "Has bound this role" msgstr "已经绑定" -#: rbac/tree.py:16 rbac/tree.py:17 +#: rbac/tree.py:19 rbac/tree.py:20 msgid "All permissions" msgstr "所有权限" -#: rbac/tree.py:23 +#: rbac/tree.py:26 msgid "Console view" msgstr "控制台" -#: rbac/tree.py:24 +#: rbac/tree.py:27 msgid "Workspace view" msgstr "工作台" -#: rbac/tree.py:25 +#: rbac/tree.py:28 msgid "Audit view" msgstr "审计台" -#: rbac/tree.py:26 settings/models.py:140 +#: rbac/tree.py:29 settings/models.py:140 msgid "System setting" msgstr "系统设置" -#: rbac/tree.py:27 +#: rbac/tree.py:30 msgid "Other" msgstr "其它" -#: rbac/tree.py:35 +#: rbac/tree.py:38 msgid "Accounts" msgstr "账号管理" -#: rbac/tree.py:39 +#: rbac/tree.py:42 msgid "Session audits" msgstr "会话审计" -#: rbac/tree.py:49 +#: rbac/tree.py:52 msgid "Cloud import" msgstr "云同步" -#: rbac/tree.py:50 +#: rbac/tree.py:53 msgid "Backup account" msgstr "备份账号" -#: rbac/tree.py:51 +#: rbac/tree.py:54 msgid "Gather account" msgstr "收集账号" -#: rbac/tree.py:52 +#: rbac/tree.py:55 msgid "App change auth" msgstr "应用改密" -#: rbac/tree.py:53 +#: rbac/tree.py:56 msgid "Asset change auth" msgstr "资产改密" -#: rbac/tree.py:54 +#: rbac/tree.py:57 msgid "Terminal setting" msgstr "终端设置" -#: rbac/tree.py:55 +#: rbac/tree.py:58 msgid "My assets" msgstr "我的资产" -#: rbac/tree.py:56 +#: rbac/tree.py:59 msgid "My apps" msgstr "我的应用" -#: rbac/tree.py:111 +#: rbac/tree.py:114 msgid "Ticket comment" msgstr "工单评论" -#: rbac/tree.py:112 tickets/models/ticket.py:163 +#: rbac/tree.py:115 tickets/models/ticket.py:163 msgid "Ticket" msgstr "工单管理" -#: rbac/tree.py:113 +#: rbac/tree.py:116 msgid "Common setting" msgstr "一般设置" -#: rbac/tree.py:115 +#: rbac/tree.py:117 msgid "View permission tree" msgstr "查看授权树" -#: rbac/tree.py:116 +#: rbac/tree.py:118 msgid "Execute batch command" msgstr "执行批量命令" -#: rbac/tree.py:160 +#: rbac/tree.py:165 msgid "View" msgstr "查看" @@ -4991,11 +4988,11 @@ msgstr "会话管理" msgid "Danger command alert" msgstr "危险命令告警" -#: terminal/notifications.py:89 terminal/notifications.py:137 +#: terminal/notifications.py:92 terminal/notifications.py:140 msgid "Level" msgstr "级别" -#: terminal/notifications.py:107 +#: terminal/notifications.py:110 msgid "Batch danger command alert" msgstr "批量危险命令告警" @@ -5039,7 +5036,7 @@ msgstr "端点无效: 移除路径 `{}`" msgid "Bucket" msgstr "桶名称" -#: terminal/serializers/storage.py:34 users/models/user.py:608 +#: terminal/serializers/storage.py:34 users/models/user.py:618 msgid "Secret key" msgstr "密钥" @@ -5384,19 +5381,19 @@ msgstr "请再次尝试" msgid "Super ticket" msgstr "超级工单" -#: tickets/notifications.py:57 +#: tickets/notifications.py:63 msgid "Your has a new ticket, applicant - {}" msgstr "你有一个新的工单, 申请人 - {}" -#: tickets/notifications.py:63 +#: tickets/notifications.py:69 msgid "New Ticket - {} ({})" msgstr "新工单 - {} ({})" -#: tickets/notifications.py:85 +#: tickets/notifications.py:91 msgid "Your ticket has been processed, processor - {}" msgstr "你的工单已被处理, 处理人 - {}" -#: tickets/notifications.py:89 +#: tickets/notifications.py:95 msgid "Ticket has processed - {} ({})" msgstr "你的工单已被处理, 处理人 - {} ({})" @@ -5535,7 +5532,7 @@ msgstr "当前组织已存在该类型" msgid "Click here to review" msgstr "点击查看" -#: users/api/user.py:175 +#: users/api/user.py:180 msgid "Could not reset self otp, use profile reset instead" msgstr "不能在该页面重置 MFA 多因子认证, 请去个人信息页面重置" @@ -5638,72 +5635,72 @@ msgid "Public key should not be the same as your old one." msgstr "不能和原来的密钥相同" #: users/forms/profile.py:149 users/serializers/profile.py:95 -#: users/serializers/profile.py:175 users/serializers/profile.py:202 +#: users/serializers/profile.py:176 users/serializers/profile.py:203 msgid "Not a valid ssh public key" msgstr "SSH密钥不合法" -#: users/forms/profile.py:160 users/models/user.py:605 +#: users/forms/profile.py:160 users/models/user.py:615 #: users/templates/users/user_password_update.html:48 msgid "Public key" msgstr "SSH公钥" -#: users/models/user.py:471 +#: users/models/user.py:481 msgid "Force enable" msgstr "强制启用" -#: users/models/user.py:538 +#: users/models/user.py:548 msgid "Local" msgstr "数据库" -#: users/models/user.py:586 users/serializers/user.py:140 +#: users/models/user.py:596 users/serializers/user.py:138 msgid "Is service account" msgstr "服务账号" -#: users/models/user.py:588 +#: users/models/user.py:598 msgid "Avatar" msgstr "头像" -#: users/models/user.py:591 +#: users/models/user.py:601 msgid "Wechat" msgstr "微信" -#: users/models/user.py:602 +#: users/models/user.py:612 msgid "Private key" msgstr "ssh私钥" -#: users/models/user.py:624 +#: users/models/user.py:634 msgid "Source" msgstr "来源" -#: users/models/user.py:628 +#: users/models/user.py:638 msgid "Date password last updated" msgstr "最后更新密码日期" -#: users/models/user.py:631 +#: users/models/user.py:641 msgid "Need update password" msgstr "需要更新密码" -#: users/models/user.py:797 +#: users/models/user.py:811 msgid "Can invite user" msgstr "可以邀请用户" -#: users/models/user.py:798 +#: users/models/user.py:812 msgid "Can remove user" msgstr "可以移除用户" -#: users/models/user.py:799 +#: users/models/user.py:813 msgid "Can match user" msgstr "可以匹配用户" -#: users/models/user.py:808 +#: users/models/user.py:822 msgid "Administrator" msgstr "管理员" -#: users/models/user.py:811 +#: users/models/user.py:825 msgid "Administrator is the super user of system" msgstr "Administrator是初始的超级管理员" -#: users/models/user.py:836 +#: users/models/user.py:850 msgid "User password history" msgstr "用户密码历史" @@ -5742,7 +5739,7 @@ msgstr "重置 MFA" msgid "The old password is incorrect" msgstr "旧密码错误" -#: users/serializers/profile.py:36 users/serializers/profile.py:189 +#: users/serializers/profile.py:36 users/serializers/profile.py:190 msgid "Password does not match security rules" msgstr "密码不满足安全规则" @@ -5754,97 +5751,97 @@ msgstr "新密码不能是最近 {} 次的密码" msgid "The newly set password is inconsistent" msgstr "两次密码不一致" -#: users/serializers/profile.py:141 users/serializers/user.py:138 +#: users/serializers/profile.py:142 users/serializers/user.py:136 msgid "Is first login" msgstr "首次登录" -#: users/serializers/user.py:26 users/serializers/user.py:33 +#: users/serializers/user.py:24 users/serializers/user.py:31 msgid "System roles" msgstr "系统角色" -#: users/serializers/user.py:31 users/serializers/user.py:34 +#: users/serializers/user.py:29 users/serializers/user.py:32 msgid "Org roles" msgstr "组织角色" -#: users/serializers/user.py:77 +#: users/serializers/user.py:75 #: xpack/plugins/change_auth_plan/models/base.py:35 #: xpack/plugins/change_auth_plan/serializers/base.py:22 msgid "Password strategy" msgstr "密码策略" -#: users/serializers/user.py:79 +#: users/serializers/user.py:77 msgid "MFA enabled" msgstr "MFA" -#: users/serializers/user.py:80 +#: users/serializers/user.py:78 msgid "MFA force enabled" msgstr "强制 MFA" -#: users/serializers/user.py:82 +#: users/serializers/user.py:80 msgid "MFA level display" msgstr "MFA 等级名称" -#: users/serializers/user.py:84 +#: users/serializers/user.py:82 msgid "Login blocked" msgstr "登录被阻塞" -#: users/serializers/user.py:87 +#: users/serializers/user.py:85 msgid "Can public key authentication" msgstr "能否公钥认证" -#: users/serializers/user.py:142 +#: users/serializers/user.py:140 msgid "Avatar url" msgstr "头像路径" -#: users/serializers/user.py:144 +#: users/serializers/user.py:142 msgid "Groups name" msgstr "用户组名" -#: users/serializers/user.py:145 +#: users/serializers/user.py:143 msgid "Source name" msgstr "用户来源名" -#: users/serializers/user.py:146 +#: users/serializers/user.py:144 msgid "Organization role name" msgstr "组织角色名称" -#: users/serializers/user.py:147 +#: users/serializers/user.py:145 msgid "Super role name" msgstr "超级角色名称" -#: users/serializers/user.py:148 +#: users/serializers/user.py:146 msgid "Total role name" msgstr "汇总角色名称" -#: users/serializers/user.py:150 +#: users/serializers/user.py:148 msgid "Is wecom bound" msgstr "是否绑定了企业微信" -#: users/serializers/user.py:151 +#: users/serializers/user.py:149 msgid "Is dingtalk bound" msgstr "是否绑定了钉钉" -#: users/serializers/user.py:152 +#: users/serializers/user.py:150 msgid "Is feishu bound" msgstr "是否绑定了飞书" -#: users/serializers/user.py:153 +#: users/serializers/user.py:151 msgid "Is OTP bound" msgstr "是否绑定了虚拟 MFA" -#: users/serializers/user.py:155 +#: users/serializers/user.py:153 msgid "System role name" msgstr "系统角色名称" -#: users/serializers/user.py:247 +#: users/serializers/user.py:245 msgid "Select users" msgstr "选择用户" -#: users/serializers/user.py:248 +#: users/serializers/user.py:246 msgid "For security, only list several users" msgstr "为了安全,仅列出几个用户" -#: users/serializers/user.py:281 +#: users/serializers/user.py:279 msgid "name not unique" msgstr "名称重复" @@ -6685,6 +6682,14 @@ msgstr "华北-乌兰察布一" msgid "CN South-Guangzhou-InvitationOnly" msgstr "华南-广州-友好用户环境" +#: xpack/plugins/cloud/serializers/account.py:58 +msgid "Validity display" +msgstr "有效显示" + +#: xpack/plugins/cloud/serializers/account.py:59 +msgid "Provider display" +msgstr "服务商名称" + #: xpack/plugins/cloud/serializers/account_attrs.py:13 msgid "AccessKey ID" msgstr "" @@ -6844,6 +6849,25 @@ msgstr "旗舰版" msgid "Community edition" msgstr "社区版" +#, fuzzy +#~| msgid "Date created" +#~ msgid "date created" +#~ msgstr "创建日期" + +#, fuzzy +#~| msgid "Date updated" +#~ msgid "date updated" +#~ msgstr "更新日期" + +#~ msgid "Can view system user asset" +#~ msgstr "可以查看系统用户资产列表" + +#~ msgid "Can add asset to system user" +#~ msgstr "可以添加资产到系统用户" + +#~ msgid "Can remove system user asset" +#~ msgstr "可以移除系统用户资产" + #, fuzzy #~| msgid "Create" #~ msgid "create" diff --git a/apps/rbac/tree.py b/apps/rbac/tree.py index 9ba33930e..083e64c96 100644 --- a/apps/rbac/tree.py +++ b/apps/rbac/tree.py @@ -320,7 +320,7 @@ class PermissionTreeUtil: if not self._check_model_xpack(model_id): continue title = p.app_label_codename - if title in xpack_nodes: + if not settings.XPACK_ENABLED and title in xpack_nodes: continue # name 要特殊处理,解决 i18n 问题