{{this.bannerPrefix}} {{this.bannerText}}

{{#if (and this.model.approved (not this.currentUserHasAuthorized) (or (not this.model.requestEntity) this.currentUserIsRequesting) ) }} {{else}}
{{#if this.model.requestEntity.canRead}} {{this.requestorName}} {{else}} {{this.requestorName}} {{/if}} {{#if this.currentUserIsRequesting}}are{{else}}is{{/if}} {{#if this.model.approved}} authorized to access {{this.model.requestPath}} {{else}} requesting access to {{this.model.requestPath}} {{/if}}
{{#if (or (not this.model.requestEntity) this.currentUserIsRequesting)}}

Accessor

{{this.model.id}}
{{/if}}
{{#if (gt this.model.authorizations.length 0)}} Already approved by {{#each this.model.authorizations as |authorization index|}} {{~#if authorization.canRead~}} {{authorization.name}} {{~else~}} {{authorization.name}} {{~/if~}}{{#if (lt (inc index) this.model.authorizations.length)}},{{/if}} {{/each}} {{else}} Awaiting authorization. {{/if}}
{{/if}} {{#if this.controlGroupResponse.token}}

We’ve saved your request token, but you may want to copy it just in case: {{this.controlGroupResponse.token}}

{{/if}} {{! template-lint-configure simple-unless "warn" }} {{#unless (and this.model.approved (or (not this.model.requestEntity) this.currentUserIsRequesting))}}
{{#if this.model.canAuthorize}} {{#if (or this.model.approved this.currentUserHasAuthorized)}} Back {{else}} {{/if}} {{else}} {{/if}}
{{/unless}}