From bee5fcc8a598f84040b9528944c5e937ce43a78c Mon Sep 17 00:00:00 2001 From: Oleh Paduchak Date: Thu, 3 Jul 2025 14:43:19 +0300 Subject: [PATCH] fixed redundant unless --- app/guid-node/template.hbs | 72 +++++++++++++++++--------------------- 1 file changed, 33 insertions(+), 39 deletions(-) diff --git a/app/guid-node/template.hbs b/app/guid-node/template.hbs index 6f5b3a33e9..632f1610c2 100644 --- a/app/guid-node/template.hbs +++ b/app/guid-node/template.hbs @@ -99,37 +99,33 @@ @label={{t 'node.left_nav.registrations'}} /> {{/unless}} - {{#unless this.currentUser.viewOnlyToken}} - {{#if (and (not this.viewOnly) this.model.taskInstance.value.userHasReadPermission)}} + {{#if (and (not this.viewOnly) this.model.taskInstance.value.userHasReadPermission)}} + + {{#if this.useGravyWaffle}} + {{else}} + {{/if}} - {{#if (and (not this.viewOnly) this.model.taskInstance.value.userHasWritePermission)}} - {{#if this.useGravyWaffle}} - - {{else}} - - {{/if}} - {{/if}} - {{/unless}} + {{/if}} - {{#unless this.currentUser.viewOnlyToken}} - {{#if (and (not this.viewOnly) this.model.taskInstance.value.userHasReadPermission)}} - - {{/if}} - {{/unless}} + {{#if (and (not this.viewOnly) this.model.taskInstance.value.userHasReadPermission)}} + + {{/if}}