mirror of
https://github.com/xcp-ng/xenadmin.git
synced 2024-11-25 06:16:37 +01:00
Merge pull request #596 from GaborApatiNagy/master_CA-177058
CA-177058: [SCTX-2146] VM Power Admin could not create VMs - RBAC issues with XS 6.5
This commit is contained in:
commit
cdfc665458
@ -180,6 +180,7 @@ namespace XenAdmin.Wizards.NewVMWizard
|
||||
VMOperationCommand.StartDiagnosisForm,
|
||||
gpuCapability ? pageVgpu.GpuGroup : null,
|
||||
gpuCapability ? pageVgpu.VgpuType : null,
|
||||
pageVgpu.HasChanged,
|
||||
page_5_CpuMem.SelectedCoresPerSocket,
|
||||
page_CloudConfigParameters.ConfigDriveTemplateText);
|
||||
|
||||
|
@ -117,7 +117,7 @@ namespace XenAdmin.Actions.VMActions
|
||||
List<DiskDescription> disks, SR fullCopySR, List<VIF> vifs, bool startAfter,
|
||||
Action<VM, bool> warningDialogHAInvalidConfig,
|
||||
Action<VMStartAbstractAction, Failure> startDiagnosisForm,
|
||||
GPU_group gpuGroup, VGPU_type vgpuType, long coresPerSocket, string cloudConfigDriveTemplateText)
|
||||
GPU_group gpuGroup, VGPU_type vgpuType, bool modifyVgpuSettings, long coresPerSocket, string cloudConfigDriveTemplateText)
|
||||
: base(connection, string.Format(Messages.CREATE_VM, name),
|
||||
string.Format(Messages.CREATE_VM_FROM_TEMPLATE, name, Helpers.GetName(template)))
|
||||
{
|
||||
@ -149,8 +149,7 @@ namespace XenAdmin.Actions.VMActions
|
||||
if (HomeServer != null || pool_of_one != null) // otherwise we have no where to put the action
|
||||
AppliesTo.Add(HomeServer != null ? HomeServer.opaque_ref : pool_of_one.opaque_ref);
|
||||
|
||||
assignOrRemoveVgpu = (GpuGroup != null && VgpuType != null)
|
||||
|| Helpers.GpuCapability(Connection);
|
||||
assignOrRemoveVgpu = GpuGroup != null && VgpuType != null || modifyVgpuSettings && Helpers.GpuCapability(Connection);
|
||||
|
||||
#region RBAC Dependencies
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user