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

Feature #4317 #4215: Allow group admins to create VRouters

This commit is contained in:
Carlos Martín 2016-03-01 11:41:17 +01:00
parent 59aae97a58
commit a48444848a
3 changed files with 2 additions and 10 deletions

View File

@ -37,7 +37,7 @@ module OpenNebula
SELF = -1
# Default resource ACL's for group users (create)
GROUP_DEFAULT_ACLS = "VM+IMAGE+TEMPLATE+DOCUMENT+SECGROUP"
GROUP_DEFAULT_ACLS = "VM+IMAGE+TEMPLATE+DOCUMENT+SECGROUP+VROUTER"
# The default view for group and group admins, must be defined in
# sunstone_views.yaml

View File

@ -171,7 +171,6 @@ define(function(require) {
});
$("#group_res_net", context).prop("checked", false);
$("#group_res_vr", context).prop("checked", false);
$(context).off("change", ".admin_view_input");
$(context).on("change", ".admin_view_input", function(){

View File

@ -336,12 +336,5 @@ void VirtualNetworkPool::authorize_nic(
vnet->unlock();
if (ot == PoolObjectSQL::VM)
{
ar->add_auth(AuthRequest::USE, perm);
}
else // (ot == PoolObjectSQL::VROUTER)
{
ar->add_auth(AuthRequest::MANAGE, perm);
}
ar->add_auth(AuthRequest::USE, perm);
}