check_posting_under

NAML documentation   Watch a video
   Usages of this macro
The source code below doesn't have navigation links because no usage has been compiled yet. Navigation links depend on how and where the macro is used, so first you may try finding all usages of "check_posting_under".
... in permissions.naml
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
<macro name="check_posting_under" requires="user" dot_parameter="node_attr">
    <n.set_local_user.this_user />
    <n.set_local_node.node_attr/>
    <n.block.>
        <n.if.local_user.is_banned>
            <then.throw_template_exception name="banned"/>
        </n.if.local_user.is_banned>
        <n.if.local_node.is_app>
            <then.if.not.local_user.has_permission node="[n.local_node/]" permission_node="[n.local_node/]" permission="[n.create_topic_permission/]" >
                <then.if.local_user.is_anonymous>
                    <then.throw_template_exception name="no_anonymous"/>
                    <else.throw_template_exception name="no_create_topic_permission"/>
                </then.if.local_user.is_anonymous>
            </then.if.not.local_user.has_permission>
            <else.if.not.local_user.has_permission node="[n.local_node/]" permission_node="[n.local_node.topic_or_app/]" permission="[n.reply_permission/]" >
                <then.if.local_user.is_anonymous>
                    <then.throw_template_exception name="no_anonymous"/>
                    <else.throw_template_exception name="no_reply_permission"/>
                </then.if.local_user.is_anonymous>
            </else.if.not.local_user.has_permission>
        </n.if.local_node.is_app>
    </n.block.>
</macro>