summaryrefslogtreecommitdiff
path: root/src/PVE/API2/Network/SDN/Zones.pm
diff options
context:
space:
mode:
authorAlexandre Derumier <aderumier@odiso.com>2023-06-08 03:24:44 +0200
committerFabian Grünbichler <f.gruenbichler@proxmox.com>2023-06-12 12:55:12 +0200
commitd7c1620043a8ed3492bb085c33974a5e3466e0cc (patch)
tree69c2aeda1c43e460b15457f7fa78b88786727a6d /src/PVE/API2/Network/SDN/Zones.pm
parentcbf906daae88a1e3bc67586359cffd47544d2045 (diff)
fix permissions && use new /sdn/zones/<zone>/<vnet> path
- use new /sdn/zones/zone/<vnet> path for vnet && subnets permissions - fix some permissions on /sdn/zones && /sdn Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
Diffstat (limited to 'src/PVE/API2/Network/SDN/Zones.pm')
-rw-r--r--src/PVE/API2/Network/SDN/Zones.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/PVE/API2/Network/SDN/Zones.pm b/src/PVE/API2/Network/SDN/Zones.pm
index 6e53240..4c8b7e1 100644
--- a/src/PVE/API2/Network/SDN/Zones.pm
+++ b/src/PVE/API2/Network/SDN/Zones.pm
@@ -251,7 +251,7 @@ __PACKAGE__->register_method ({
method => 'PUT',
description => "Update sdn zone object configuration.",
permissions => {
- check => ['perm', '/sdn/zones', ['SDN.Allocate']],
+ check => ['perm', '/sdn/zones/{zone}', ['SDN.Allocate']],
},
parameters => PVE::Network::SDN::Zones::Plugin->updateSchema(),
returns => { type => 'null' },
@@ -315,7 +315,7 @@ __PACKAGE__->register_method ({
method => 'DELETE',
description => "Delete sdn zone object configuration.",
permissions => {
- check => ['perm', '/sdn/zones', ['SDN.Allocate']],
+ check => ['perm', '/sdn/zones/{zone}', ['SDN.Allocate']],
},
parameters => {
additionalProperties => 0,