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:
Tomasz Sowa 2010-01-11 15:09:31 +00:00
parent 590a94523e
commit 5523d0c27a
1 changed files with 3 additions and 12 deletions

View File

@ -105,26 +105,17 @@ void item_print_content(std::ostringstream & out, const std::string & content, I
else
if( content_type == Item::ct_html )
{
if( request.CanUseHtml(request.item.user_id) )
out << content;
else
HtmlEscape(out, content);
out << content;
}
else
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
else
HtmlEscape(out, content);
out << content; // !! tutaj bedzie parsowanie bbcodu i tworzenie odpowiadajacego mu html-a
}
else
if( content_type == Item::ct_raw )
{
if( request.CanUseRaw(request.item.user_id) )
out << content;
else
HtmlEscape(out, content);
out << content;
}
}