[pve-devel] [PATCH manager] permissions: differentiate between zone and fabric paths
Gabriel Goller
g.goller at proxmox.com
Wed Aug 13 15:54:40 CEST 2025
With the addition of the fabrics status in the resources, there are
fabrics and zones using the 'sdn' type. The finer distinction between
zones and fabrics is done using the new 'sdn_type' parameter.
Signed-off-by: Gabriel Goller <g.goller at proxmox.com>
---
www/manager6/data/PermPathStore.js | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/www/manager6/data/PermPathStore.js b/www/manager6/data/PermPathStore.js
index c7ec42314c82..8a5344483f0d 100644
--- a/www/manager6/data/PermPathStore.js
+++ b/www/manager6/data/PermPathStore.js
@@ -43,7 +43,14 @@ Ext.define('PVE.data.PermPathStore', {
path = '/vms/' + record.get('vmid');
break;
case 'sdn':
- path = '/sdn/zones/' + record.get('sdn');
+ switch (record.get('sdn_type')) {
+ case 'zone':
+ path = '/sdn/zones/' + record.get('sdn');
+ break;
+ case 'fabric':
+ path = '/sdn/fabrics/' + record.get('sdn');
+ break;
+ }
break;
case 'storage':
path = '/storage/' + record.get('storage');
--
2.47.2
More information about the pve-devel
mailing list