mirror of
https://github.com/xcp-ng/xenadmin.git
synced 2024-11-23 12:30:50 +01:00
Missing RBAC permission checks for CreateDiskAction.
Signed-off-by: Konstantina Chremmou <Konstantina.Chremmou@cloud.com>
This commit is contained in:
parent
d3a2805af8
commit
87ff42086f
@ -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();
|
||||
|
@ -53,6 +53,8 @@ namespace XenAdmin.Actions
|
||||
{
|
||||
_device = device;
|
||||
VM = vm;
|
||||
|
||||
ApiMethodsToRoleCheck.AddRange("VM.get_allowed_VBD_devices", "VDI.create");
|
||||
}
|
||||
|
||||
protected override void Run()
|
||||
|
Loading…
Reference in New Issue
Block a user