ui: Don't check global session permissions for a single session (#11657)

This commit is contained in:
John Cowen 2021-12-01 11:06:44 +00:00 committed by GitHub
parent 6fa1a058a6
commit 8092595057
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 2 deletions

View File

@ -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)}}
<DataSource
@src={{uri '/${partition}/${nspace}/${dc}/sessions/for-key/${id}'
(hash