From 5ad82693d86df23e22e6acfc4c7d8747e3cf32a5 Mon Sep 17 00:00:00 2001 From: John Cowen Date: Wed, 1 Dec 2021 11:06:44 +0000 Subject: [PATCH] ui: Don't check global session permissions for a single session (#11657) --- ui/packages/consul-ui/app/templates/dc/kv/edit.hbs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ui/packages/consul-ui/app/templates/dc/kv/edit.hbs b/ui/packages/consul-ui/app/templates/dc/kv/edit.hbs index c9e852b87f..a375e575f0 100644 --- a/ui/packages/consul-ui/app/templates/dc/kv/edit.hbs +++ b/ui/packages/consul-ui/app/templates/dc/kv/edit.hbs @@ -108,8 +108,10 @@ as |parts|}} @parent={{parentKey}} /> - {{! session is slightly different to item.Session as we only have session if you have session:read perms}} -{{#if (and item.Session (can "read sessions"))}} +{{! `session` is slightly different to `item.Session` as we only have `session` }} +{{! if you have `session:read perms` whereas you can get the sessions ID from }} +{{! `item.Session` without any session perms }} +{{#if (and item.Session)}}