fix(region): access group policy

This commit is contained in:
Qu Xuan
2021-09-01 11:16:50 +08:00
parent 626ad20587
commit 715dcce485
2 changed files with 7 additions and 0 deletions
@@ -70,6 +70,10 @@ type SAccessGroupCache struct {
NetworkType string `width:"8" charset:"ascii" nullable:"false" index:"true" list:"user" default:"vpc"`
}
func (manager *SAccessGroupCacheManager) ResourceScope() rbacutils.TRbacScope {
return rbacutils.ScopeDomain
}
func (manager *SAccessGroupCacheManager) AllowCreateItem(ctx context.Context, userCred mcclient.TokenCredential, query jsonutils.JSONObject, data jsonutils.JSONObject) bool {
return false
}
+3
View File
@@ -55,6 +55,9 @@ var (
"natgateways",
"natsentries",
"natdentries",
"file_systems",
"access_groups",
"access_group_caches",
"policy_assignments",
"proxysettings",
"project_mappings",