- 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:
@@ -63,7 +63,7 @@ void priv_user_tab_init(Item & item)
|
||||
priv_user_table.push_back(item.item_content.user_id);
|
||||
}
|
||||
else
|
||||
if( cur->session->puser->super_user )
|
||||
if( cur->session->puser->is_super_user )
|
||||
{
|
||||
// super user is allowed to change to any user
|
||||
for(Users::Iterator i=system->users.Begin() ; i != system->users.End() ; ++i)
|
||||
@@ -112,7 +112,7 @@ void priv_user_tab_name(Info & i)
|
||||
User * puser = system->users.GetUser( uid );
|
||||
|
||||
if( puser )
|
||||
i.out << puser->name;
|
||||
i.out << puser->login;
|
||||
else
|
||||
i.out << "user_id: " << uid;
|
||||
}
|
||||
@@ -168,7 +168,7 @@ void priv_group_tab_init(Item & item)
|
||||
priv_group_table.push_back(item.item_content.group_id);
|
||||
}
|
||||
else
|
||||
if( cur->session->puser->super_user )
|
||||
if( cur->session->puser->is_super_user )
|
||||
{
|
||||
// super user is allowed to change to any group
|
||||
for(Groups::Iterator i=system->groups.Begin() ; i != system->groups.End() ; ++i)
|
||||
|
||||
Reference in New Issue
Block a user