2020-07-20 17:12:34 +00:00
|
|
|
{{#let (policy/group (or item.Policies item.ACLs.PolicyDefaults (array))) as |policies|}}
|
2020-06-23 09:12:04 +00:00
|
|
|
{{#let (get policies 'management') as |management|}}
|
|
|
|
{{#if (gt management.length 0)}}
|
|
|
|
<dl>
|
|
|
|
<dt>
|
|
|
|
Management
|
|
|
|
</dt>
|
|
|
|
<dd>
|
|
|
|
{{#each (get policies 'management') as |item|}}
|
|
|
|
<span data-test-policy class={{policy/typeof item}}>{{item.Name}}</span>
|
|
|
|
{{/each}}
|
|
|
|
</dd>
|
|
|
|
</dl>
|
|
|
|
{{/if}}
|
|
|
|
{{/let}}
|
|
|
|
{{#let (get policies 'identities') as |identities|}}
|
|
|
|
{{#if (gt identities.length 0)}}
|
|
|
|
<dl>
|
|
|
|
<dt>Identities</dt>
|
|
|
|
<dd>
|
|
|
|
{{#each identities as |item|}}
|
|
|
|
<span data-test-policy class={{policy/typeof item}}>{{item.Name}}</span>
|
|
|
|
{{/each}}
|
|
|
|
</dd>
|
|
|
|
</dl>
|
|
|
|
{{/if}}
|
|
|
|
{{/let}}
|
|
|
|
{{#if (token/is-legacy item) }}
|
|
|
|
<dl>
|
|
|
|
<dt>Rules</dt>
|
|
|
|
<dd>
|
|
|
|
Legacy tokens have embedded rules.
|
|
|
|
</dd>
|
|
|
|
</dl>
|
|
|
|
{{else}}
|
2020-07-20 17:12:34 +00:00
|
|
|
{{#let (append (get policies 'policies') (or item.Roles item.ACLs.RoleDefaults (array))) as |policies|}}
|
2020-06-23 09:12:04 +00:00
|
|
|
{{#if (gt policies.length 0)}}
|
|
|
|
<dl>
|
|
|
|
<dt>Rules</dt>
|
|
|
|
<dd>
|
|
|
|
{{#each policies as |item|}}
|
|
|
|
<span data-test-policy class={{policy/typeof item}}>{{item.Name}}</span>
|
|
|
|
{{/each}}
|
|
|
|
</dd>
|
|
|
|
</dl>
|
|
|
|
{{/if}}
|
|
|
|
{{/let}}
|
|
|
|
{{/if}}
|
|
|
|
{{/let}}
|