File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -38,12 +38,12 @@ const workspace = {
3838 [
3939 new ComplexPermission (
4040 [ RoleConst . USER ] ,
41- [ PermissionConst . APPLICATION . getKnowledgeWorkspaceResourcePermission ( source_id ) ] ,
41+ [ PermissionConst . APPLICATION . getApplicationWorkspaceResourcePermission ( source_id ) ] ,
4242 [ ] ,
4343 'AND' ,
4444 ) ,
4545 RoleConst . WORKSPACE_MANAGE . getWorkspaceRole ,
46- PermissionConst . APPLICATION_RELATE_RESOURCE_VIEW . getKnowledgeWorkspaceResourcePermission (
46+ PermissionConst . APPLICATION_RELATE_RESOURCE_VIEW . getApplicationWorkspaceResourcePermission (
4747 source_id ,
4848 ) ,
4949 PermissionConst . APPLICATION_RELATE_RESOURCE_VIEW . getWorkspacePermissionWorkspaceManageRole ,
@@ -55,12 +55,12 @@ const workspace = {
5555 [
5656 new ComplexPermission (
5757 [ RoleConst . USER ] ,
58- [ PermissionConst . APPLICATION . getKnowledgeWorkspaceResourcePermission ( source_id ) ] ,
58+ [ PermissionConst . APPLICATION . getApplicationWorkspaceResourcePermission ( source_id ) ] ,
5959 [ ] ,
6060 'AND' ,
6161 ) ,
6262 RoleConst . WORKSPACE_MANAGE . getWorkspaceRole ,
63- PermissionConst . APPLICATION_PUBLISH . getKnowledgeWorkspaceResourcePermission ( source_id ) ,
63+ PermissionConst . APPLICATION_PUBLISH . getApplicationWorkspaceResourcePermission ( source_id ) ,
6464 PermissionConst . APPLICATION_PUBLISH . getWorkspacePermissionWorkspaceManageRole ,
6565 ] ,
6666 'OR' ,
Original file line number Diff line number Diff line change 1717 type =" primary"
1818 @click =" publish(applicationFormRef)"
1919 :disabled =" loading"
20- v-if =" permissionPrecise.edit (id)"
20+ v-if =" permissionPrecise.publish (id)"
2121 >
2222 {{ $t('common.publish') }}
2323 </el-button >
You can’t perform that action at this time.
0 commit comments