fix: When having read permission for the application, the application settings page can be viewed

v3.2
zhangzhanwei 2025-11-10 10:55:03 +08:00 committed by zhanweizhang7
parent 1ed1bbc1b0
commit 7f1299e8c5
1 changed files with 3 additions and 3 deletions

View File

@ -82,13 +82,13 @@ const ApplicationDetailRouter = {
() => { () => {
const to: any = get_next_route() const to: any = get_next_route()
if (to.params.from == 'resource-management') { } else { if (to.params.from == 'resource-management') { } else {
return PermissionConst.APPLICATION_EDIT.getWorkspacePermissionWorkspaceManageRole() return PermissionConst.APPLICATION_READ.getWorkspacePermissionWorkspaceManageRole()
} }
}, },
() => { () => {
const to: any = get_next_route() const to: any = get_next_route()
if (to.params.from == 'resource-management') { } else { if (to.params.from == 'resource-management') { } else {
return PermissionConst.APPLICATION_EDIT.getApplicationWorkspaceResourcePermission( return PermissionConst.APPLICATION_READ.getApplicationWorkspaceResourcePermission(
to ? to.params.id : '', to ? to.params.id : '',
) )
} }
@ -99,7 +99,7 @@ const ApplicationDetailRouter = {
}, },
() => { () => {
const to: any = get_next_route() const to: any = get_next_route()
if (to.path.includes('resource-management')) { return PermissionConst.RESOURCE_APPLICATION_EDIT } if (to.path.includes('resource-management')) { return PermissionConst.RESOURCE_APPLICATION_READ }
}, },
] ]
}, },