can_post_under

NAML documentation   Watch a video
   Usages of this macro
... in permissions.naml
200
201
202
203
204
205
206
207
208
209
<macro name="can_post_under" requires="user" dot_parameter="node_attr">
    <n.set_local_user
Macro
Parameters: user
.this_user
Binary
Namespace: UserNamespace
Parameters: do
 />
    <n.set_local_node
Macro
Parameters: node
.node_attr/>
    <n.block
Binary
Namespace: BasicNamespace
Parameters: do
.>
        <n.if
Binary
Namespace: BasicNamespace
Parameters: condition, else, then
.local_node
Macro
Parameters: do
.is_app
Binary
Namespace: NodeNamespace
>
            <then.local_user
Macro
Parameters: do
.can_create_topic_in
Macro
Requires: user
Parameters: node_attr
.local_node
Macro
Parameters: do
/>
            <else.local_user
Macro
Parameters: do
.can_reply_to
Macro
Requires: user
Parameters: node_attr
.local_node
Macro
Parameters: do
/>
        </n.if.local_node.is_app>
    </n.block.>
</macro>