1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-22 18:50:08 +03:00

feature #687: Pass user groups by reference

This commit is contained in:
Ruben S. Montero 2011-07-05 17:34:42 +02:00
parent 3ff70fabbe
commit bd290d8dad
2 changed files with 2 additions and 2 deletions

View File

@ -46,7 +46,7 @@ public:
return gid;
};
set<int> get_groups()
const set<int>& get_groups()
{
return group_ids;
};

View File

@ -348,7 +348,7 @@ void Scheduler::match()
if ( user != 0 )
{
set<int> groups = user->get_groups();
const set<int> groups = user->get_groups();
if ( uid == 0 || user->get_gid() == 0 )
{