Add [cmd:allowinclude]

Pages must specify whether they want to be included or not.

Otherwise there too many surprises possibe, enforcing access
restrictions will get more complicated
这个提交包含在:
2022-08-17 21:54:32 +02:00
父节点 86890660f4
当前提交 2102cf4e6b
共有 2 个文件被更改,包括 6 次插入2 次删除

查看文件

@@ -6,7 +6,11 @@ std::string DynamicContentIncludePage::render()
auto rev = revisionDao->getCurrentForPage(this->argument);
if(rev)
{
return rev->content;
/* Quite dirty */
if(rev->content.find("[cmd:allowinclude]1[") != std::string::npos)
{
return rev->content;
}
}
return {};
}