added: winix function: rmuser
changed: UGContainer<> now uses std::list as a storage (previously it was using std::vector with pointers) removed: now we don't have the operator[] for UGContainer<> git-svn-id: svn://ttmath.org/publicrep/winix/trunk@816 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
@@ -38,8 +38,8 @@ void priv_user_tab_init(Item & item)
|
||||
if( cur->session->puser->super_user )
|
||||
{
|
||||
// super user is allowed to change to any user
|
||||
for(size_t i=0 ; i<system->users.Size() ; ++i)
|
||||
priv_user_table.push_back( system->users[i].id );
|
||||
for(Users::Iterator i=system->users.Begin() ; i != system->users.End() ; ++i)
|
||||
priv_user_table.push_back(i->id);
|
||||
|
||||
// as well to nobody (-1)
|
||||
priv_user_table.push_back(-1);
|
||||
@@ -143,8 +143,8 @@ void priv_group_tab_init(Item & item)
|
||||
if( cur->session->puser->super_user )
|
||||
{
|
||||
// super user is allowed to change to any group
|
||||
for(size_t i=0 ; i<system->groups.Size() ; ++i)
|
||||
priv_group_table.push_back( system->groups[i].id );
|
||||
for(Groups::Iterator i=system->groups.Begin() ; i != system->groups.End() ; ++i)
|
||||
priv_group_table.push_back(i->id);
|
||||
|
||||
// as well to nogroup (-1)
|
||||
priv_group_table.push_back(-1);
|
||||
@@ -156,7 +156,7 @@ void priv_group_tab_init(Item & item)
|
||||
// owner of the item -- is allowed to change only to a group in which he belongs to
|
||||
for(size_t i=0 ; i<cur->session->puser->groups.size() ; ++i)
|
||||
{
|
||||
priv_group_table.push_back( cur->session->puser->groups[i] );
|
||||
priv_group_table.push_back(cur->session->puser->groups[i]);
|
||||
|
||||
if( item.group_id == cur->session->puser->groups[i] )
|
||||
was_current_group = true;
|
||||
|
Reference in New Issue
Block a user