+ // check if the parent article is published.
+ EntityAdapter article = MirGlobal.localizer().dataModel().adapterModel().makeEntityAdapter("content",
+ DatabaseContent.getInstance().selectById(parentId));
+ if (!MirGlobal.localizer().openPostings().allowArticlePublication((EntityContent)article.getEntity())) {
+ throw new ServletModuleExc("Illegal article");
+ }
+