mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-21 14:50:08 +03:00
Feature #862: Make VMs private. VMs from the same group don't show in 'onevm list g' by default.
This behaviour can be changed with an ACL rule similar to this one: "@1 VM/@1 INFO"
This commit is contained in:
parent
1b02cf8136
commit
5c5ce06ae7
@ -110,16 +110,12 @@ void RequestManagerPoolInfoFilter::request_execute(
|
||||
|
||||
// Default rights: Users can see and use their resources, and
|
||||
// the public ones in their group
|
||||
uid_filter << "uid = " << att.uid << " OR ";
|
||||
uid_filter << "uid = " << att.uid;
|
||||
|
||||
// VMs don't have public column
|
||||
if ( auth_object == AuthRequest::VM )
|
||||
// VMs don't have public column, are considered private
|
||||
if ( auth_object != AuthRequest::VM )
|
||||
{
|
||||
uid_filter << "gid = " << att.gid;
|
||||
}
|
||||
else
|
||||
{
|
||||
uid_filter << "(gid = " << att.gid << " AND public = 1)";
|
||||
uid_filter << " OR (gid = " << att.gid << " AND public = 1)";
|
||||
}
|
||||
|
||||
for ( it=oids.begin(); it< oids.end(); it++ )
|
||||
|
Loading…
x
Reference in New Issue
Block a user