[% DEFAULT article_parent_id = url.param.parent_id %] [% SET article_parent = global.table.article.get('id', article_parent_id) %] [% SET article_root_id = article_parent.root_id %] [% SET is_root_article = (! article_parent.id) %] [% SET is_main_article = (! article_parent.parent.id) %] [% IF (is_main_article || is_root_article) && ! global.ctlr.auth.authed_user %] Only authenticated users can post root and main articles. [% ELSE %]
[% END %]