Missing RBAC permission checks for CreateDiskAction.

Signed-off-by: Konstantina Chremmou <Konstantina.Chremmou@cloud.com>
This commit is contained in:
Konstantina Chremmou 2023-02-23 15:19:22 +00:00
parent d3a2805af8
commit 87ff42086f
2 changed files with 3 additions and 0 deletions

View File

@ -165,6 +165,7 @@ namespace XenAdmin.Dialogs
if (_vm != null)
{
//note that this action alters the Device
var action = new CreateDiskAction(Disk, Device, _vm);
using (var dialog = new ActionProgressDialog(action, ProgressBarStyle.Blocks))
dialog.ShowDialog();

View File

@ -53,6 +53,8 @@ namespace XenAdmin.Actions
{
_device = device;
VM = vm;
ApiMethodsToRoleCheck.AddRange("VM.get_allowed_VBD_devices", "VDI.create");
}
protected override void Run()