{#if !$userStore?.operator && activeDeployRulesets.length > 0}

The workspace {parentWorkspaceId} has a protection rule{activeDeployRulesets.length > 1 ? 's' : ''} {activeDeployRulesets.map((r) => r.name).join(', ')} that restrict{activeDeployRulesets.length > 1 ? '' : 's'} direct deployments. You need to merge changes through the synced git repo with Git Sync, or by asking a user with the rights to bypass this rule.

{#if canBypass} {/if}
{/if}