fixed: static files loaded to /var such as /var/ckeditor_winix.js were not properly returned
(html filter was used but they are mostly javascript files) added: new Item::ContentType: ct_other if an item has ct_other then the html filter is not used for the content git-svn-id: svn://ttmath.org/publicrep/winix/trunk@1040 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
@@ -753,6 +753,12 @@ bool System::CanUseBBCode(long user_id)
|
||||
}
|
||||
|
||||
|
||||
// !! IMPROVE ME change to a better name
|
||||
bool System::CanUseOther(long user_id)
|
||||
{
|
||||
return IsSuperUser(user_id) || IsMemberOfGroup(user_id, L"allow_other");
|
||||
}
|
||||
|
||||
|
||||
|
||||
bool System::IsSuperUser(long user_id)
|
||||
@@ -1399,6 +1405,7 @@ bool System::AddCommonFileToVar(const wchar_t * file_path, const wchar_t * url,
|
||||
file_content_item.type = Item::file;
|
||||
file_content_item.html_template = config->templates_index_raw;
|
||||
file_content_item.content = file_content;
|
||||
file_content_item.content_type = Item::ct_other;
|
||||
|
||||
return AddFile(file_content_item, false) == WINIX_ERR_OK;
|
||||
}
|
||||
|
Reference in New Issue
Block a user