From 263db9b8c2cc953528fade982dbbf71da6a0da49 Mon Sep 17 00:00:00 2001 From: Qu Xuan Date: Thu, 1 Apr 2021 10:31:32 +0800 Subject: [PATCH] fix: nat sku domain policy --- pkg/compute/policy/defaults.go | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/pkg/compute/policy/defaults.go b/pkg/compute/policy/defaults.go index 6aaf45a1b9..572e909b31 100644 --- a/pkg/compute/policy/defaults.go +++ b/pkg/compute/policy/defaults.go @@ -288,6 +288,18 @@ var ( Action: PolicyActionGet, Result: rbacutils.Allow, }, + { + Service: api.SERVICE_TYPE, + Resource: "nat_skus", + Action: PolicyActionList, + Result: rbacutils.Allow, + }, + { + Service: api.SERVICE_TYPE, + Resource: "nat_skus", + Action: PolicyActionGet, + Result: rbacutils.Allow, + }, }, }, { @@ -355,18 +367,6 @@ var ( Result: rbacutils.Allow, }, */ - { - Service: api.SERVICE_TYPE, - Resource: "nat_skus", - Action: PolicyActionList, - Result: rbacutils.Allow, - }, - { - Service: api.SERVICE_TYPE, - Resource: "nat_skus", - Action: PolicyActionGet, - Result: rbacutils.Allow, - }, }, }, }