mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-15 09:13:15 +09:00
Feature #2565: Make all zones visible by default to all users
This commit is contained in:
1 parent
22e621ea95
commit
def8fa4490
2 files changed
+8
-30
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user