fixed: access to content type should not be checked when generating a page
git-svn-id: svn://ttmath.org/publicrep/cmslu/trunk@552 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
parent
590a94523e
commit
5523d0c27a
|
@ -105,26 +105,17 @@ void item_print_content(std::ostringstream & out, const std::string & content, I
|
||||||
else
|
else
|
||||||
if( content_type == Item::ct_html )
|
if( content_type == Item::ct_html )
|
||||||
{
|
{
|
||||||
if( request.CanUseHtml(request.item.user_id) )
|
out << content;
|
||||||
out << content;
|
|
||||||
else
|
|
||||||
HtmlEscape(out, content);
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
if( content_type == Item::ct_bbcode )
|
if( content_type == Item::ct_bbcode )
|
||||||
{
|
{
|
||||||
if( request.CanUseBBCode(request.item.user_id) )
|
out << content; // !! tutaj bedzie parsowanie bbcodu i tworzenie odpowiadajacego mu html-a
|
||||||
out << content; // !! tutaj bedzie parsowanie bbcodu i tworzenie odpowiadajacego mu html-a
|
|
||||||
else
|
|
||||||
HtmlEscape(out, content);
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
if( content_type == Item::ct_raw )
|
if( content_type == Item::ct_raw )
|
||||||
{
|
{
|
||||||
if( request.CanUseRaw(request.item.user_id) )
|
out << content;
|
||||||
out << content;
|
|
||||||
else
|
|
||||||
HtmlEscape(out, content);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue