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:
Alexandre Derumier 2023-03-27 12:18:21 +02:00 committed by Dominik Csapak
parent 5fcda825ea
commit 2c12348881
2 changed files with 13 additions and 3 deletions

View File

@ -304,7 +304,7 @@ Ext.define('PVE.lxc.Config', {
});
}
if (caps.vms['VM.Console']) {
if (caps.vms['VM.Audit']) {
me.items.push(
{
xtype: 'pveFirewallRules',
@ -342,6 +342,11 @@ Ext.define('PVE.lxc.Config', {
list_refs_url: base_url + '/firewall/refs',
itemId: 'firewall-ipset',
},
);
}
if (caps.vms['VM.Console']) {
me.items.push(
{
title: gettext('Log'),
groups: ['firewall'],

View File

@ -339,7 +339,7 @@ Ext.define('PVE.qemu.Config', {
});
}
if (caps.vms['VM.Console']) {
if (caps.vms['VM.Audit']) {
me.items.push(
{
xtype: 'pveFirewallRules',
@ -377,7 +377,12 @@ Ext.define('PVE.qemu.Config', {
list_refs_url: base_url + '/firewall/refs',
itemId: 'firewall-ipset',
},
{
);
}
if (caps.vms['VM.Console']) {
me.items.push(
{
title: gettext('Log'),
groups: ['firewall'],
iconCls: 'fa fa-list',