CP-15408: Add license restriction for VM migration

Cherry picked from cream-indigo:
CP-14848: License restriction for migration for DragDropMigrateVMCommand
Signed-off-by: Cheng Zhang <cheng.zhang@citrix.com>
This commit is contained in:
Cheng Zhang 2015-11-27 14:00:25 +08:00 committed by Mihaela Stoica
parent 0bf44398df
commit 4a1a9914d6

View File

@ -168,6 +168,11 @@ namespace XenAdmin.Commands
return false;
}
}
else
{
if (Helpers.FeatureForbidden(draggedVM.Connection, Host.RestrictInterPoolMigrate))
return false;
}
if (draggedVM.allowed_operations == null || !draggedVM.allowed_operations.Contains(vm_operations.pool_migrate))
{