Skip to content

Commit eda35a6

Browse files
committed
fix: When having read permission for the application, the application settings page can be viewed
1 parent 1ed1bbc commit eda35a6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ui/src/router/modules/application-detail.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,13 +82,13 @@ const ApplicationDetailRouter = {
8282
() => {
8383
const to: any = get_next_route()
8484
if (to.params.from == 'resource-management') { } else {
85-
return PermissionConst.APPLICATION_EDIT.getWorkspacePermissionWorkspaceManageRole()
85+
return PermissionConst.APPLICATION_READ.getWorkspacePermissionWorkspaceManageRole()
8686
}
8787
},
8888
() => {
8989
const to: any = get_next_route()
9090
if (to.params.from == 'resource-management') { } else {
91-
return PermissionConst.APPLICATION_EDIT.getApplicationWorkspaceResourcePermission(
91+
return PermissionConst.APPLICATION_READ.getApplicationWorkspaceResourcePermission(
9292
to ? to.params.id : '',
9393
)
9494
}
@@ -99,7 +99,7 @@ const ApplicationDetailRouter = {
9999
},
100100
() => {
101101
const to: any = get_next_route()
102-
if (to.path.includes('resource-management')) { return PermissionConst.RESOURCE_APPLICATION_EDIT }
102+
if (to.path.includes('resource-management')) { return PermissionConst.RESOURCE_APPLICATION_READ }
103103
},
104104
]
105105
},

0 commit comments

Comments
 (0)