1
0
mirror of https://github.com/OpenNebula/one.git synced 2024-12-23 17:33:56 +03:00

Feature #687: Let users use and see public objects in their group

This commit is contained in:
Carlos Martín 2011-06-30 17:43:06 +02:00
parent d813946556
commit bc29eaca98

View File

@ -78,6 +78,15 @@ void AuthRequest::add_auth(Object ob,
{
auth = true;
}
else if ( pub && ( gids.count( ob_gid ) == 1 ) &&
(op == USE || op == INSTANTIATE || op == INFO ) &&
(ob == NET || ob == IMAGE || ob == TEMPLATE)
)
{
// Users are authorized to use or see information of NET, IMAGE, and
// TEMPLATE objects in their group
auth = true;
}
else
{
Nebula& nd = Nebula::instance();