From e6c93767f0ccb50e4edd0af7895b8a3f24ef9da4 Mon Sep 17 00:00:00 2001 From: Qiu Jian Date: Wed, 2 Jan 2019 21:25:46 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A1=A5=E5=85=85admin=20resource=E5=88=97?= =?UTF-8?q?=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkg/cloudcommon/policy/resources.go | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/pkg/cloudcommon/policy/resources.go b/pkg/cloudcommon/policy/resources.go index 6aeb56f7a9..d5b6ab532f 100644 --- a/pkg/cloudcommon/policy/resources.go +++ b/pkg/cloudcommon/policy/resources.go @@ -41,6 +41,16 @@ var ( } yunionconfAdminResources = []string{} logAdminResources = []string{} + identityAdminResources = []string{ + "users", + "groups", + "domains", + "projects", + "roles", + "policies", + "services", + "endpoints", + } adminResources = map[string][]string{ "compute": computeAdminResources, @@ -50,6 +60,7 @@ var ( "yunionagent": yunionagentAdminResources, "yunionconf": yunionconfAdminResources, "log": logAdminResources, + "identity": identityAdminResources, } )