diff --git a/core/middleware/password_expired.go b/core/middleware/password_expired.go index 47d51155032b..7432a73a8f9a 100644 --- a/core/middleware/password_expired.go +++ b/core/middleware/password_expired.go @@ -27,6 +27,7 @@ func PasswordExpired() gin.HandlerFunc { c.Request.URL.Path == "/api/v2/core/settings/search" || c.Request.URL.Path == "/api/v2/core/settings/search/base" || c.Request.URL.Path == "/api/v2/core/xpack/settings/search" || + c.Request.URL.Path == "/api/v2/core/enterprise/users/info" || c.Request.URL.Path == "/api/v2/core/enterprise/licenses/info" || c.Request.URL.Path == "/api/v2/core/enterprise/licenses/status" || c.Request.URL.Path == "/api/v2/core/enterprise/licenses/upload" { diff --git a/frontend/src/routers/index.ts b/frontend/src/routers/index.ts index 37722df1e2eb..4a80a5712b81 100644 --- a/frontend/src/routers/index.ts +++ b/frontend/src/routers/index.ts @@ -105,6 +105,9 @@ router.beforeEach(async (to, from, next) => { if (to.path === '/apps/all' && to.query.install != undefined) { return next(); } + if (to.name === 'Expired') { + return next(); + } const activeMenuKey = 'cachedRoute' + (to.meta.activeMenu || ''); if (to.query.uncached != undefined) { const query = { ...to.query }; diff --git a/frontend/src/views/host/file-management/code-editor/index.vue b/frontend/src/views/host/file-management/code-editor/index.vue index 397eb7f5de65..ed4fcf29b643 100644 --- a/frontend/src/views/host/file-management/code-editor/index.vue +++ b/frontend/src/views/host/file-management/code-editor/index.vue @@ -1007,7 +1007,7 @@ const loadHistoryVersionCount = async (path: string) => { }; const saveContent = async () => { - if (!hasManagePermissionAccess()) { + if (!hasManagePermissionAccess(undefined, { nodeAdmin: true })) { MsgError(i18n.global.t('commons.res.forbidden')); return; } diff --git a/frontend/src/views/host/file-management/index.vue b/frontend/src/views/host/file-management/index.vue index 555a2ecbb49e..ad7b0858ae1b 100644 --- a/frontend/src/views/host/file-management/index.vue +++ b/frontend/src/views/host/file-management/index.vue @@ -1367,11 +1367,11 @@ const handleCreate = (command: string) => { }; const delFile = async (row: File.File | null) => { - deleteRef.value.acceptParams([row]); + deleteRef.value.acceptParams([row], currentNode.value); }; const batchDelFiles = () => { - deleteRef.value.acceptParams(selects.value); + deleteRef.value.acceptParams(selects.value, currentNode.value); }; const formatFileSize = (size: number) => {