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

Feature #2565: Make all zones visible by default to all users

This commit is contained in:
Carlos Martín 2014-02-19 15:48:36 +01:00
parent 22e621ea95
commit def8fa4490
2 changed files with 8 additions and 30 deletions

View File

@ -114,6 +114,14 @@ AclManager::AclManager(
AclRule::INDIVIDUAL_ID |
zone_id,
error_str);
// @<gid> ZONE/#<zone> USE *
add_rule(AclRule::ALL_ID,
AclRule::ALL_ID |
PoolObjectSQL::ZONE,
AuthRequest::USE,
AclRule::ALL_ID,
error_str);
}
}

View File

@ -261,21 +261,6 @@ int GroupAddProvider::edit_acl_rules(
error_msg);
// @<gid> ZONE/#<zone> USE *
rc += aclm->add_rule(
AclRule::GROUP_ID |
group_id,
PoolObjectSQL::ZONE |
AclRule::INDIVIDUAL_ID |
zone_id,
AuthRequest::USE,
AclRule::ALL_ID,
error_msg);
if (rc != 0)
{
return -1;
@ -343,21 +328,6 @@ int GroupDelProvider::edit_acl_rules(
error_msg);
// @<gid> ZONE/#<zone> USE *
rc += aclm->del_rule(
AclRule::GROUP_ID |
group_id,
PoolObjectSQL::ZONE |
AclRule::INDIVIDUAL_ID |
zone_id,
AuthRequest::USE,
AclRule::ALL_ID,
error_msg);
if (rc != 0)
{
return -1;