feat(权限优化)1.AI对话中点击快捷标签问题时,明明已经配置了默认默写为什么还会提示配置?必须点击一下保存并关闭才可以这个不对,只要配置了就可以问答不需要再让用户过来点击一次!如图一、二所示
deploy-hxtesting / build-and-deploy (push) Successful in 1m20s
deploy-hxtesting / build-and-deploy (push) Successful in 1m20s
2.知识库中的企业培训(课件)、企业培训(试题)、配置中心、组织架构、共享空间如图三所示可查看权限归属到超级管理员权限中!如何对
This commit is contained in:
1 parent
353f60a175
commit
043e0485e2
14 files changed
+368
-74
No files matched your search
@@ -76,9 +76,8 @@ export const useMenuStore = defineStore('menuStore', () => {
|
||||
|
||||
const liteHiddenPaths = new Set(['logout', 'organizations'])
|
||||
|
||||
// 共享空间 (organizations) 仅对当前空间的 admin / owner 暴露入口。
|
||||
// viewer / contributor 即便在共享空间里拥有资源,也无需自行管理共享关系,
|
||||
// 入口在侧栏只会徒增噪音;后端 RBAC 才是权限的最终来源(见 middleware/rbac.go)。
|
||||
// 共享空间 (organizations) 仅对平台超级管理员暴露入口(000163 权限收口:
|
||||
// 原为空间 admin/owner 可见)。后端 RBAC 才是权限的最终来源(见 middleware/rbac.go)。
|
||||
const visibleMenuArr = computed(() => {
|
||||
const authStore = useAuthStore()
|
||||
const deploymentCapabilities = useDeploymentCapabilitiesStore()
|
||||
@@ -86,7 +85,7 @@ export const useMenuStore = defineStore('menuStore', () => {
|
||||
if (authStore.isLiteMode && liteHiddenPaths.has(item.path)) {
|
||||
return false
|
||||
}
|
||||
if (item.path === 'organizations' && !authStore.hasRole('admin')) {
|
||||
if (item.path === 'organizations' && !authStore.isSystemAdmin) {
|
||||
return false
|
||||
}
|
||||
if (!deploymentCapabilities.isSupported(item.requiredCapability)) {
|
||||
|
||||
Reference in new issue
Block a user