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:
parent
22e621ea95
commit
def8fa4490
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user