mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-19 10:46:58 +08:00
fix: no need to specify query scope when get with parameters
This commit is contained in:
@@ -370,6 +370,8 @@ func FetchCheckQueryOwnerScope(ctx context.Context, userCred mcclient.TokenCrede
|
||||
if isAdmin && allowScope.HigherThan(rbacutils.ScopeProject) {
|
||||
queryScope = allowScope
|
||||
}
|
||||
} else if action == policy.PolicyActionGet {
|
||||
queryScope = allowScope
|
||||
}
|
||||
if resScope.HigherThan(queryScope) {
|
||||
queryScope = resScope
|
||||
|
||||
@@ -173,7 +173,7 @@ func (self *SRegion) CreateILoadBalancer(loadbalancer *cloudprovider.SLoadbalanc
|
||||
"VpcId": loadbalancer.VpcID,
|
||||
}
|
||||
|
||||
if loadbalancer.AddressType != api.LB_ADDR_TYPE_INTERNET {
|
||||
if loadbalancer.AddressType != api.LB_ADDR_TYPE_INTERNET {
|
||||
params["SubnetId"] = loadbalancer.NetworkID
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user