fix(sdn-controller): only admin can create private networks (#5200)

This commit is contained in:
BenjiReis
2020-08-04 14:09:33 +02:00
committed by GitHub
parent 47999f1f72
commit f25fd267dd
2 changed files with 3 additions and 0 deletions

View File

@@ -27,3 +27,5 @@
> - major: if the change breaks compatibility
>
> In case of conflict, the highest (lowest in previous list) `$version` wins.
xo-server-sdn-controller patch

View File

@@ -439,6 +439,7 @@ class SDNController extends EventEmitter {
mtu: { type: 'integer', optional: true },
preferredCenterId: { type: 'string', optional: true },
}
createPrivateNetwork.permission = 'admin'
// ---------------- OpenFlow rules method ----------------------------------