mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-21 14:19:49 +08:00
fix(region): access group policy
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
@@ -55,6 +55,9 @@ var (
|
||||
"natgateways",
|
||||
"natsentries",
|
||||
"natdentries",
|
||||
"file_systems",
|
||||
"access_groups",
|
||||
"access_group_caches",
|
||||
"policy_assignments",
|
||||
"proxysettings",
|
||||
"project_mappings",
|
||||
|
||||
Reference in New Issue
Block a user