mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-08-16 21:13:45 +00:00
ui: qemu|lxc : fix firewall menu caps
The current VM.Console cap is wrong. Only log panel needs VM.Console, the other ones only need VM.Audit. Signed-off-by: Alexandre Derumier <aderumier@odiso.com> [ D: rewrite commit message a bit ] Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
parent
5fcda825ea
commit
2c12348881
@ -304,7 +304,7 @@ Ext.define('PVE.lxc.Config', {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
if (caps.vms['VM.Console']) {
|
if (caps.vms['VM.Audit']) {
|
||||||
me.items.push(
|
me.items.push(
|
||||||
{
|
{
|
||||||
xtype: 'pveFirewallRules',
|
xtype: 'pveFirewallRules',
|
||||||
@ -342,6 +342,11 @@ Ext.define('PVE.lxc.Config', {
|
|||||||
list_refs_url: base_url + '/firewall/refs',
|
list_refs_url: base_url + '/firewall/refs',
|
||||||
itemId: 'firewall-ipset',
|
itemId: 'firewall-ipset',
|
||||||
},
|
},
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (caps.vms['VM.Console']) {
|
||||||
|
me.items.push(
|
||||||
{
|
{
|
||||||
title: gettext('Log'),
|
title: gettext('Log'),
|
||||||
groups: ['firewall'],
|
groups: ['firewall'],
|
||||||
|
@ -339,7 +339,7 @@ Ext.define('PVE.qemu.Config', {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
if (caps.vms['VM.Console']) {
|
if (caps.vms['VM.Audit']) {
|
||||||
me.items.push(
|
me.items.push(
|
||||||
{
|
{
|
||||||
xtype: 'pveFirewallRules',
|
xtype: 'pveFirewallRules',
|
||||||
@ -377,6 +377,11 @@ Ext.define('PVE.qemu.Config', {
|
|||||||
list_refs_url: base_url + '/firewall/refs',
|
list_refs_url: base_url + '/firewall/refs',
|
||||||
itemId: 'firewall-ipset',
|
itemId: 'firewall-ipset',
|
||||||
},
|
},
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (caps.vms['VM.Console']) {
|
||||||
|
me.items.push(
|
||||||
{
|
{
|
||||||
title: gettext('Log'),
|
title: gettext('Log'),
|
||||||
groups: ['firewall'],
|
groups: ['firewall'],
|
||||||
|
Loading…
Reference in New Issue
Block a user