From 91e5877d4af194d86881fd910c69fb1beff43c17 Mon Sep 17 00:00:00 2001 From: Arnav Palnitkar Date: Thu, 3 Feb 2022 01:46:03 +0530 Subject: [PATCH] Fix kv secret access bug (#13872) * Fix kv secret access bug - Set permissions state when call is successful * Added changelog --- changelog/13872.txt | 3 +++ ui/app/routes/vault/cluster/secrets/backend/list.js | 4 +++- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 changelog/13872.txt diff --git a/changelog/13872.txt b/changelog/13872.txt new file mode 100644 index 000000000..688f6cc8b --- /dev/null +++ b/changelog/13872.txt @@ -0,0 +1,3 @@ +```release-note:bug +ui: Fix kv engine access bug +``` \ No newline at end of file diff --git a/ui/app/routes/vault/cluster/secrets/backend/list.js b/ui/app/routes/vault/cluster/secrets/backend/list.js index aa90b1173..dcda64796 100644 --- a/ui/app/routes/vault/cluster/secrets/backend/list.js +++ b/ui/app/routes/vault/cluster/secrets/backend/list.js @@ -10,7 +10,8 @@ const SUPPORTED_BACKENDS = supportedSecretBackends(); export default Route.extend({ templateName: 'vault/cluster/secrets/backend/list', pathHelp: service('path-help'), - noMetadataPermissions: false, + // By default assume user doesn't have permissions + noMetadataPermissions: true, queryParams: { page: { refreshModel: true, @@ -105,6 +106,7 @@ export default Route.extend({ pageFilter: params.pageFilter, }) .then((model) => { + this.set('noMetadataPermissions', false); this.set('has404', false); return model; })