can_delete

NAML documentation   Watch a video
   Usages of this macro
... in can_delete.naml
1
2
3
<override_macro name="can_delete" requires="user" dot_parameter="node_attr">
    <n.is_site_admin
Macro
Requires: user
/>
</override_macro>
Overrides default macro
... in permissions.naml
104
105
106
<macro name="can_delete" requires="user" dot_parameter="node_attr">
    <n.both condition1="[n.not.is_banned/]" condition2="[n.owns.node_attr/]"/>
</macro>