mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-08-14 09:01:32 +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(
|
||||
{
|
||||
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'],
|
||||
|
@ -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',
|
||||
|
Loading…
Reference in New Issue
Block a user