- updated to the new pikotools api (child spaces were removed)
some plugins need to be fixed yet: ticket, gallery, group, menu - added current user to default models as "user" - renamed in User: super_user -> is_super_user, env -> admin_env, pass_hash_salted -> is_pass_hash_salted - now Users class has a WinixModel as a base class some plugin calls have to be fixed yet - added UserWrapper model with a pointer to User class - removed from ItemContent: methods for accessing 'meta' and 'admin_meta', now ezc can iterate through Space classes - fixed in env winix function: if there is "changeuser" parameter then we should only switch the user (not save anything)
This commit is contained in:
@@ -144,13 +144,13 @@ void SessionData::BuildFileList(std::vector<long> & file_tab, pt::Space & space)
|
||||
{
|
||||
file_tab.clear();
|
||||
|
||||
pt::Space::TableType * child_table = space.find_child_space_table();
|
||||
pt::Space::TableType * child_table = space.get_table(L"params"); // CHECKME it was space.find_child_space_table();
|
||||
|
||||
if( child_table )
|
||||
{
|
||||
for(pt::Space * sp : *child_table)
|
||||
{
|
||||
if( sp->is_child_space_name(L"param") )
|
||||
if( sp->is_equal(L"name", L"param") )
|
||||
CheckFile(file_tab, *sp);
|
||||
}
|
||||
}
|
||||
@@ -159,13 +159,13 @@ void SessionData::BuildFileList(std::vector<long> & file_tab, pt::Space & space)
|
||||
|
||||
void SessionData::CheckFile(std::vector<long> & file_tab, pt::Space & space)
|
||||
{
|
||||
pt::Space::TableType * child_table = space.find_child_space_table();
|
||||
pt::Space::TableType * child_table = space.get_table(L"files"); // CHECKME it was space.find_child_space_table();
|
||||
|
||||
if( child_table )
|
||||
{
|
||||
for(pt::Space * sp : *child_table)
|
||||
{
|
||||
if( sp->is_child_space_name(L"file") )
|
||||
if( sp->is_equal(L"name", L"file") )
|
||||
{
|
||||
file_tab.push_back(sp->to_long(L"itemid"));
|
||||
}
|
||||
|
Reference in New Issue
Block a user