mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 01:33:05 +00:00
fix: When having read permission for the application, the application settings page can be viewed
This commit is contained in:
parent
663a6f2db1
commit
fe5608d1ab
|
|
@ -82,13 +82,13 @@ const ApplicationDetailRouter = {
|
|||
() => {
|
||||
const to: any = get_next_route()
|
||||
if (to.params.from == 'resource-management') { } else {
|
||||
return PermissionConst.APPLICATION_EDIT.getWorkspacePermissionWorkspaceManageRole()
|
||||
return PermissionConst.APPLICATION_READ.getWorkspacePermissionWorkspaceManageRole()
|
||||
}
|
||||
},
|
||||
() => {
|
||||
const to: any = get_next_route()
|
||||
if (to.params.from == 'resource-management') { } else {
|
||||
return PermissionConst.APPLICATION_EDIT.getApplicationWorkspaceResourcePermission(
|
||||
return PermissionConst.APPLICATION_READ.getApplicationWorkspaceResourcePermission(
|
||||
to ? to.params.id : '',
|
||||
)
|
||||
}
|
||||
|
|
@ -99,7 +99,7 @@ const ApplicationDetailRouter = {
|
|||
},
|
||||
() => {
|
||||
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 }
|
||||
},
|
||||
]
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in New Issue