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:
parent
3ff70fabbe
commit
bd290d8dad
@ -46,7 +46,7 @@ public:
|
||||
return gid;
|
||||
};
|
||||
|
||||
set<int> get_groups()
|
||||
const set<int>& get_groups()
|
||||
{
|
||||
return group_ids;
|
||||
};
|
||||
|
@ -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 )
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user