From cf7c5ee6d910cd447e5dc8f309b9e61a942a0a6d Mon Sep 17 00:00:00 2001 From: hc-github-team-secure-vault-core <82990506+hc-github-team-secure-vault-core@users.noreply.github.com> Date: Thu, 5 Oct 2023 11:54:03 -0400 Subject: [PATCH] backport of commit cbb96b230c296402341aba11fc1cf41d4f9c2e25 (#23524) Co-authored-by: Jordan Reimer --- changelog/23516.txt | 3 ++ .../vault/cluster/policies/error.hbs | 28 +++++++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 changelog/23516.txt create mode 100644 ui/app/templates/vault/cluster/policies/error.hbs diff --git a/changelog/23516.txt b/changelog/23516.txt new file mode 100644 index 000000000..f87ab2092 --- /dev/null +++ b/changelog/23516.txt @@ -0,0 +1,3 @@ +```release-note:bug +ui: Fixes issue with sidebar navigation links disappearing when navigating to policies when a user is not authorized +``` \ No newline at end of file diff --git a/ui/app/templates/vault/cluster/policies/error.hbs b/ui/app/templates/vault/cluster/policies/error.hbs new file mode 100644 index 000000000..d1105447c --- /dev/null +++ b/ui/app/templates/vault/cluster/policies/error.hbs @@ -0,0 +1,28 @@ +{{! + Copyright (c) HashiCorp, Inc. + SPDX-License-Identifier: BUSL-1.1 +~}} + +{{#if (eq this.model.httpStatus 404)}} + +{{else}} + + +

+ {{#if (eq this.model.httpStatus 403)}} + Not authorized + {{else}} + Error + {{/if}} +

+
+
+
+ {{#if this.model.message}} +

{{this.model.message}}

+ {{/if}} + {{#each this.model.errors as |error|}} +

{{error}}

+ {{/each}} +
+{{/if}} \ No newline at end of file