... | in handle_new_node_permission_error.naml |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
|
<override_macro name="handle_new_node_permission_error">
<n.catch_exception. id="check-permission">
<n.visitor.check_posting_under.page_node/>
</n.catch_exception.>
<n.handle_exception. for="check-permission">
<n.exception. name="no_create_topic_permission">
<n.new_topic_forbidden_page/>
</n.exception.>
<n.exception. name="read_only">
<n.new_topic_forbidden_page/>
</n.exception.>
<n.exception. name="no_reply_permission">
<n.redirect_to.page_node.node_with_permission permission="[n.reply_permission/]" do="[n.unauthorized_path/]" />
</n.exception.>
<n.exception. name="banned">
<n.ban_error_page/>
</n.exception.>
<n.exception. name="no_anonymous">
<n.login.><t>You must login to your account.</t></n.login.>
</n.exception.>
</n.handle_exception.>
</override_macro>
|
... | in reply.naml |
290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311
|
<macro name="handle_new_node_permission_error">
<n.catch_exception. id="check-permission">
<n.visitor.check_posting_under.page_node/>
</n.catch_exception.>
<n.handle_exception. for="check-permission">
<n.exception. name="no_create_topic_permission">
<n.new_topic_forbidden_page/>
</n.exception.>
<n.exception. name="read_only">
<n.new_topic_forbidden_page/>
</n.exception.>
<n.exception. name="no_reply_permission">
<n.redirect_to.page_node.node_with_permission permission="[n.reply_permission/]" do="[n.unauthorized_path/]" />
</n.exception.>
<n.exception. name="banned">
<n.ban_error_page/>
</n.exception.>
<n.exception. name="no_anonymous">
<n.login.><t>You must login to your account.</t></n.login.>
</n.exception.>
</n.handle_exception.>
</macro>
|
Free forum by Nabble | Naml |