From 855c115b45f88922019a5f063c4fce724b0a473b Mon Sep 17 00:00:00 2001 From: Qiu Jian Date: Mon, 26 Nov 2018 01:53:59 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=BAyunonagent=E7=9A=84=E9=80=9A=E7=9F=A5?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E7=BC=BA=E7=9C=81=E7=AD=96=E7=95=A5=EF=BC=8C?= =?UTF-8?q?=E9=81=BF=E5=85=8D=E5=89=8D=E7=AB=AF=E6=8A=A5=E6=9D=83=E9=99=90?= =?UTF-8?q?=E4=B8=8D=E8=B6=B3=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkg/cloudcommon/policy/policy.go | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/pkg/cloudcommon/policy/policy.go b/pkg/cloudcommon/policy/policy.go index d4a61ff041..d6e0bb7640 100644 --- a/pkg/cloudcommon/policy/policy.go +++ b/pkg/cloudcommon/policy/policy.go @@ -60,6 +60,24 @@ var ( Action: PolicyActionGet, Result: rbacutils.UserAllow, }, + { + Service: "yunionagent", + Resource: "notices", + Action: PolicyActionList, + Result: rbacutils.UserAllow, + }, + { + Service: "yunionagent", + Resource: "readmarks", + Action: PolicyActionList, + Result: rbacutils.UserAllow, + }, + { + Service: "yunionagent", + Resource: "readmarks", + Action: PolicyActionCreate, + Result: rbacutils.UserAllow, + }, } )