diff --git a/changelog/23516.txt b/changelog/23516.txt new file mode 100644 index 0000000000..f87ab20927 --- /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 0000000000..d1105447ca --- /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