VM.Snapshot.Rollback privilege added

VM.Snapshot.Rollback privilege added

Signed-off-by: Matthias Urban <matthias.urban@pure-systems.com>
This commit is contained in:
Matthias Urban 2017-09-13 12:30:34 +02:00 committed by Wolfgang Bumiller
parent 8555b100bb
commit 8ed196a408
2 changed files with 2 additions and 2 deletions

View File

@ -200,7 +200,7 @@ Ext.define('PVE.lxc.Config', {
}); });
} }
if (caps.vms['VM.Snapshot']) { if (caps.vms['VM.Snapshot'] || caps.vms['VM.Snapshot.Rollback']) {
me.items.push({ me.items.push({
title: gettext('Snapshots'), title: gettext('Snapshots'),
iconCls: 'fa fa-history', iconCls: 'fa fa-history',

View File

@ -234,7 +234,7 @@ Ext.define('PVE.qemu.Config', {
}); });
} }
if (caps.vms['VM.Snapshot'] && !template) { if ((caps.vms['VM.Snapshot'] || caps.vms['VM.Snapshot.Rollback']) && !template) {
me.items.push({ me.items.push({
title: gettext('Snapshots'), title: gettext('Snapshots'),
iconCls: 'fa fa-history', iconCls: 'fa fa-history',