mirror of
https://github.com/status-im/consul.git
synced 2025-02-19 17:14:37 +00:00
ui: Don't check global session permissions for a single session (#11657)
This commit is contained in:
parent
b5c8af4580
commit
5ad82693d8
@ -108,8 +108,10 @@ as |parts|}}
|
|||||||
@parent={{parentKey}}
|
@parent={{parentKey}}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
{{! session is slightly different to item.Session as we only have session if you have session:read perms}}
|
{{! `session` is slightly different to `item.Session` as we only have `session` }}
|
||||||
{{#if (and item.Session (can "read sessions"))}}
|
{{! if you have `session:read perms` whereas you can get the sessions ID from }}
|
||||||
|
{{! `item.Session` without any session perms }}
|
||||||
|
{{#if (and item.Session)}}
|
||||||
<DataSource
|
<DataSource
|
||||||
@src={{uri '/${partition}/${nspace}/${dc}/sessions/for-key/${id}'
|
@src={{uri '/${partition}/${nspace}/${dc}/sessions/for-key/${id}'
|
||||||
(hash
|
(hash
|
||||||
|
Loading…
x
Reference in New Issue
Block a user