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:
parent
d813946556
commit
bc29eaca98
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user