fix: Shared resource permission
This commit is contained in:
parent
0c2a17ed56
commit
3f1a60f388
@ -5,11 +5,9 @@ const workspace = {
|
|||||||
is_share: () =>
|
is_share: () =>
|
||||||
hasPermission(
|
hasPermission(
|
||||||
new ComplexPermission(
|
new ComplexPermission(
|
||||||
[RoleConst.ADMIN],
|
[RoleConst.ADMIN,RoleConst.USER.getWorkspaceRole,RoleConst.WORKSPACE_MANAGE.getWorkspaceRole],
|
||||||
[PermissionConst.SHARED_KNOWLEDGE_READ],
|
[PermissionConst.KNOWLEDGE_READ.getWorkspacePermission,PermissionConst.KNOWLEDGE_READ.getWorkspacePermissionWorkspaceManageRole],
|
||||||
[EditionConst.IS_EE],
|
[EditionConst.IS_EE],'OR'),
|
||||||
'OR',
|
|
||||||
),
|
|
||||||
'OR',
|
'OR',
|
||||||
),
|
),
|
||||||
create: () =>
|
create: () =>
|
||||||
|
|||||||
@ -5,11 +5,9 @@ const workspace = {
|
|||||||
is_share: () =>
|
is_share: () =>
|
||||||
hasPermission(
|
hasPermission(
|
||||||
new ComplexPermission(
|
new ComplexPermission(
|
||||||
[RoleConst.ADMIN],
|
[RoleConst.ADMIN,RoleConst.USER.getWorkspaceRole,RoleConst.WORKSPACE_MANAGE.getWorkspaceRole],
|
||||||
[PermissionConst.MODEL_READ],
|
[PermissionConst.MODEL_READ.getWorkspacePermission,PermissionConst.MODEL_READ.getWorkspacePermissionWorkspaceManageRole],
|
||||||
[EditionConst.IS_EE],
|
[EditionConst.IS_EE],'OR'),
|
||||||
'OR',
|
|
||||||
),
|
|
||||||
'OR',
|
'OR',
|
||||||
),
|
),
|
||||||
addModel: () =>
|
addModel: () =>
|
||||||
|
|||||||
@ -4,7 +4,10 @@ import { EditionConst, PermissionConst, RoleConst } from '@/utils/permission/dat
|
|||||||
const workspace = {
|
const workspace = {
|
||||||
is_share: () =>
|
is_share: () =>
|
||||||
hasPermission(
|
hasPermission(
|
||||||
[EditionConst.IS_EE],
|
new ComplexPermission(
|
||||||
|
[RoleConst.ADMIN,RoleConst.USER.getWorkspaceRole,RoleConst.WORKSPACE_MANAGE.getWorkspaceRole],
|
||||||
|
[PermissionConst.TOOL_READ.getWorkspacePermission,PermissionConst.TOOL_READ.getWorkspacePermissionWorkspaceManageRole],
|
||||||
|
[EditionConst.IS_EE],'OR'),
|
||||||
'OR',
|
'OR',
|
||||||
),
|
),
|
||||||
delete: () =>
|
delete: () =>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user