diff --git a/backend/.render-build-trigger b/backend/.render-build-trigger index 720b86f1a..553625f7e 100644 --- a/backend/.render-build-trigger +++ b/backend/.render-build-trigger @@ -2,9 +2,9 @@ # This file is used to force Docker service rebuilds in PR previews # Modify LAST_UPDATE to trigger rebuilds -LAST_UPDATE=2026-09-30T12:43:29Z +LAST_UPDATE=2026-10-14T15:18:46Z # Instructions: # 1. To force rebuild of Docker services in a PR, update LAST_UPDATE -# 2. Run: perl -i -pe "s/LAST_UPDATE=2026-09-30T12:43:29Z +# 2. Run: perl -i -pe "s/LAST_UPDATE=2026-10-14T15:18:46Z # 2. Commit and push changes to trigger Docker rebuilds diff --git a/collect/.render-build-trigger b/collect/.render-build-trigger index 720b86f1a..553625f7e 100644 --- a/collect/.render-build-trigger +++ b/collect/.render-build-trigger @@ -2,9 +2,9 @@ # This file is used to force Docker service rebuilds in PR previews # Modify LAST_UPDATE to trigger rebuilds -LAST_UPDATE=2026-09-30T12:43:29Z +LAST_UPDATE=2026-10-14T15:18:46Z # Instructions: # 1. To force rebuild of Docker services in a PR, update LAST_UPDATE -# 2. Run: perl -i -pe "s/LAST_UPDATE=2026-09-30T12:43:29Z +# 2. Run: perl -i -pe "s/LAST_UPDATE=2026-10-14T15:18:46Z # 2. Commit and push changes to trigger Docker rebuilds diff --git a/frontend/.render-build-trigger b/frontend/.render-build-trigger index 720b86f1a..553625f7e 100644 --- a/frontend/.render-build-trigger +++ b/frontend/.render-build-trigger @@ -2,9 +2,9 @@ # This file is used to force Docker service rebuilds in PR previews # Modify LAST_UPDATE to trigger rebuilds -LAST_UPDATE=2026-09-30T12:43:29Z +LAST_UPDATE=2026-10-14T15:18:46Z # Instructions: # 1. To force rebuild of Docker services in a PR, update LAST_UPDATE -# 2. Run: perl -i -pe "s/LAST_UPDATE=2026-09-30T12:43:29Z +# 2. Run: perl -i -pe "s/LAST_UPDATE=2026-10-14T15:18:46Z # 2. Commit and push changes to trigger Docker rebuilds diff --git a/frontend/src/components/account/impersonation/ImpersonationPanel.vue b/frontend/src/components/account/impersonation/ImpersonationPanel.vue index ca1689d3c..be5670984 100644 --- a/frontend/src/components/account/impersonation/ImpersonationPanel.vue +++ b/frontend/src/components/account/impersonation/ImpersonationPanel.vue @@ -94,90 +94,98 @@ async function disableConsent() { ) " /> - - - - - + + + - - - - - - - {{ - t('account.impersonation.impersonation_consent_is_enabled_until_time', { - time: consentExpirationDate, - }) - }} - - - - - {{ $t('account.impersonation.revoke_impersonation_consent') }} - - - - - - - - - {{ t('account.impersonation.impersonation_consent_is_disabled') }} - + + + + + + + + + {{ + t('account.impersonation.impersonation_consent_is_enabled_until_time', { + time: consentExpirationDate, + }) + }} + + + + + {{ $t('account.impersonation.revoke_impersonation_consent') }} + - - - {{ $t('account.impersonation.consent_to_impersonation') }} - - + + + + + + + + {{ t('account.impersonation.impersonation_consent_is_disabled') }} + + + + + {{ $t('account.impersonation.consent_to_impersonation') }} + + + {{ $t('account.impersonation.sessions') }} - + + { console.warn('[interceptor]', 'Unrecoverable 401, re-authenticating') loginStore.forceReauth() } else if (error.response?.status == 403) { - router.push({ name: 'forbidden' }) + if (error.response?.data?.data?.reason !== 'impersonation_active') { + router.push({ name: 'forbidden' }) + } } else if (!isValidationErrorCode(error.response?.data?.code)) { // show error notification if it's not a validation error notificationsStore.createNotificationFromAxiosError(error) diff --git a/frontend/src/queries/impersonationConsent.ts b/frontend/src/queries/impersonationConsent.ts index 491cb8af3..46537d334 100644 --- a/frontend/src/queries/impersonationConsent.ts +++ b/frontend/src/queries/impersonationConsent.ts @@ -11,7 +11,7 @@ export const useImpersonationConsent = defineQuery(() => { const { state, asyncStatus, ...rest } = useQuery({ key: () => [IMPERSONATION_CONSENT_KEY], - enabled: () => !!loginStore.jwtToken, + enabled: () => !!loginStore.jwtToken && !loginStore.isImpersonating, query: () => getConsent(), }) diff --git a/frontend/src/queries/impersonationSessionAudit.ts b/frontend/src/queries/impersonationSessionAudit.ts index 6c7c5cf11..3b8857eb3 100644 --- a/frontend/src/queries/impersonationSessionAudit.ts +++ b/frontend/src/queries/impersonationSessionAudit.ts @@ -30,7 +30,10 @@ export const useImpersonationSessionAudit = defineQuery(() => { pageSize: pageSize.value, }, ], - enabled: () => !!loginStore.jwtToken && !!sessionAuditStore.session?.session_id, + enabled: () => + !!loginStore.jwtToken && + !loginStore.isImpersonating && + !!sessionAuditStore.session?.session_id, query: () => getSessionAudit(sessionAuditStore.session?.session_id || '', pageNum.value, pageSize.value), }) diff --git a/frontend/src/queries/impersonationSessions.ts b/frontend/src/queries/impersonationSessions.ts index 9d61e0a70..58407dfda 100644 --- a/frontend/src/queries/impersonationSessions.ts +++ b/frontend/src/queries/impersonationSessions.ts @@ -20,7 +20,7 @@ export const useImpersonationSessions = defineQuery(() => { pageSize: pageSize.value, }, ], - enabled: () => !!loginStore.jwtToken, + enabled: () => !!loginStore.jwtToken && !loginStore.isImpersonating, query: () => getSessions(pageNum.value, pageSize.value), }) diff --git a/proxy/.render-build-trigger b/proxy/.render-build-trigger index 720b86f1a..553625f7e 100644 --- a/proxy/.render-build-trigger +++ b/proxy/.render-build-trigger @@ -2,9 +2,9 @@ # This file is used to force Docker service rebuilds in PR previews # Modify LAST_UPDATE to trigger rebuilds -LAST_UPDATE=2026-09-30T12:43:29Z +LAST_UPDATE=2026-10-14T15:18:46Z # Instructions: # 1. To force rebuild of Docker services in a PR, update LAST_UPDATE -# 2. Run: perl -i -pe "s/LAST_UPDATE=2026-09-30T12:43:29Z +# 2. Run: perl -i -pe "s/LAST_UPDATE=2026-10-14T15:18:46Z # 2. Commit and push changes to trigger Docker rebuilds diff --git a/services/mimir/.render-build-trigger b/services/mimir/.render-build-trigger index 116dfb459..a60fa2678 100644 --- a/services/mimir/.render-build-trigger +++ b/services/mimir/.render-build-trigger @@ -2,7 +2,7 @@ # This file is used to force Docker service rebuilds in PR previews # Modify LAST_UPDATE to trigger rebuilds -LAST_UPDATE=2026-09-30T12:43:29Z +LAST_UPDATE=2026-10-14T15:18:46Z # Instructions: # 1. To force rebuild of Docker services in a PR, update LAST_UPDATE