From 7d5c13ba8e63da52986411dc7bd05e4ffe4b189d Mon Sep 17 00:00:00 2001 From: Lathan <2109236440@qq.com> Date: Mon, 7 Sep 2026 11:55:22 +0800 Subject: [PATCH] =?UTF-8?q?fix(organization):=20=E4=BF=AE=E6=AD=A3?= =?UTF-8?q?=E6=88=90=E5=91=98=E6=9D=83=E9=99=90=E8=AF=B4=E6=98=8E=E4=B8=AD?= =?UTF-8?q?=E7=BC=96=E8=BE=91=E8=A7=92=E8=89=B2=E7=9A=84=E5=85=B1=E4=BA=AB?= =?UTF-8?q?=E7=9F=A5=E8=AF=86=E5=BA=93=E6=9D=83=E9=99=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 权限说明弹窗将编辑(editor)角色的「共享知识库到共享空间」标记为不可用, 与后端行为不符:ShareKnowledgeBase 仅要求共享人的组织角色为 editor+ (kbshare.go: HasPermission(types.OrgRoleEditor),admin=3/editor=2/viewer=1), 智能体共享同理(agent_share.go),且前端无角色级拦截,编辑实际可共享。 将两个弹窗(权限卡与紧凑矩阵)中编辑角色该条目改为可用,与代码保持一致。 --- frontend/src/views/organization/OrganizationEditorModal.vue | 2 +- frontend/src/views/organization/OrganizationSettingsModal.vue | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/src/views/organization/OrganizationEditorModal.vue b/frontend/src/views/organization/OrganizationEditorModal.vue index 1925f066..8f985056 100644 --- a/frontend/src/views/organization/OrganizationEditorModal.vue +++ b/frontend/src/views/organization/OrganizationEditorModal.vue @@ -108,7 +108,7 @@
  • {{ $t('organization.editor.editorPerm1') }}
  • {{ $t('organization.editor.editorPerm2') }}
  • {{ $t('organization.editor.useSharedAgentsPerm') }}
  • -
  • {{ $t('organization.editor.shareKBPerm') }}
  • +
  • {{ $t('organization.editor.shareKBPerm') }}
  • {{ $t('organization.editor.editorPerm3') }}
  • diff --git a/frontend/src/views/organization/OrganizationSettingsModal.vue b/frontend/src/views/organization/OrganizationSettingsModal.vue index 02aabdca..55de3bf6 100644 --- a/frontend/src/views/organization/OrganizationSettingsModal.vue +++ b/frontend/src/views/organization/OrganizationSettingsModal.vue @@ -265,7 +265,7 @@
  • {{ $t('organization.editor.editorPerm1') }}
  • {{ $t('organization.editor.editorPerm2') }}
  • {{ $t('organization.editor.useSharedAgentsPerm') }}
  • -
  • {{ $t('organization.editor.shareKBPerm') }}
  • +
  • {{ $t('organization.editor.shareKBPerm') }}
  • {{ $t('organization.editor.editorPerm3') }}
  • @@ -1098,7 +1098,7 @@ const orgRoleMatrix: Record = { { key: 'viewerPerm1', has: true }, { key: 'editorPerm1', has: true }, { key: 'useSharedAgentsPerm', has: true }, - { key: 'shareKBPerm', has: false }, + { key: 'shareKBPerm', has: true }, { key: 'adminPerm1', has: false }, ], viewer: [