From 5523d0c27a15a64ba172b5e848c99667ad99b1dd Mon Sep 17 00:00:00 2001 From: Tomasz Sowa Date: Mon, 11 Jan 2010 15:09:31 +0000 Subject: [PATCH] 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 --- templates/item.cpp | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/templates/item.cpp b/templates/item.cpp index ae121b8..68bc986 100755 --- a/templates/item.cpp +++ b/templates/item.cpp @@ -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; } }