improve warning message for self-approval for superadmins

This commit is contained in:
Ruben Fiszel
2025-04-23 19:07:16 +02:00
parent 60a848af48
commit b146de281b

View File

@@ -266,7 +266,7 @@
>
</div>
{/if}
{#if !completed && !alreadyResumed && job?.raw_flow?.modules?.[approvalStep]?.suspend?.user_auth_required && job?.raw_flow?.modules?.[approvalStep]?.suspend?.self_approval_disabled && $userStore && $userStore.email === job.email && $userStore.is_admin}
{#if !completed && !alreadyResumed && job?.raw_flow?.modules?.[approvalStep]?.suspend?.user_auth_required && job?.raw_flow?.modules?.[approvalStep]?.suspend?.self_approval_disabled && $userStore && $userStore.email === job.email && ($userStore.is_admin || $userStore.is_super_admin)}
<div class="mt-2">
<Alert type="warning" title="Warning">
As an administrator, by resuming or cancelling this stage of the flow, you bypass the