mirror of
https://github.com/xcp-ng/xenadmin.git
synced 2024-12-03 16:41:04 +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)
|
if (_vm != null)
|
||||||
{
|
{
|
||||||
|
//note that this action alters the Device
|
||||||
var action = new CreateDiskAction(Disk, Device, _vm);
|
var action = new CreateDiskAction(Disk, Device, _vm);
|
||||||
using (var dialog = new ActionProgressDialog(action, ProgressBarStyle.Blocks))
|
using (var dialog = new ActionProgressDialog(action, ProgressBarStyle.Blocks))
|
||||||
dialog.ShowDialog();
|
dialog.ShowDialog();
|
||||||
|
@ -53,6 +53,8 @@ namespace XenAdmin.Actions
|
|||||||
{
|
{
|
||||||
_device = device;
|
_device = device;
|
||||||
VM = vm;
|
VM = vm;
|
||||||
|
|
||||||
|
ApiMethodsToRoleCheck.AddRange("VM.get_allowed_VBD_devices", "VDI.create");
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override void Run()
|
protected override void Run()
|
||||||
|
Loading…
Reference in New Issue
Block a user