can_delete.naml

<override_macro name="can_delete" requires="user" dot_parameter="node_attr">  
        <n.either>  
            <condition1.both condition1="[n.not.is_bad_guy/]" condition2="[n.owns.node_attr/]"/>  
            <condition2.is_in_group group="Moderators" />  
        </n.either>  
</override_macro>

<macro name="is_bad_guy" requires="user">
    <n.either>
        <condition1.is_banned/>
        <condition2.is_in_group group="Spam"/>
    </n.either>
</macro>