From 16f06ff081d0625e4d9dde2abc7ef70da91758cd Mon Sep 17 00:00:00 2001 From: Qiu Jian Date: Tue, 27 Nov 2018 15:04:18 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=20quotas=20=E5=92=8C=20usage?= =?UTF-8?q?s=20=E7=9A=84=E7=BC=BA=E7=9C=81=E6=9D=83=E9=99=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkg/cloudcommon/policy/policy.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/pkg/cloudcommon/policy/policy.go b/pkg/cloudcommon/policy/policy.go index d6e0bb7640..ebbda04d79 100644 --- a/pkg/cloudcommon/policy/policy.go +++ b/pkg/cloudcommon/policy/policy.go @@ -60,6 +60,18 @@ var ( Action: PolicyActionGet, Result: rbacutils.UserAllow, }, + { + Service: "compute", + Resource: "quotas", + Action: PolicyActionGet, + Result: rbacutils.OwnerAllow, + }, + { + Service: "compute", + Resource: "usages", + Action: PolicyActionGet, + Result: rbacutils.OwnerAllow, + }, { Service: "yunionagent", Resource: "notices",