mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-01 15:07:17 +08:00
fix: network created by sysadmin should be shared by default
This commit is contained in:
@@ -171,7 +171,7 @@ func SharableManagerValidateCreateData(
|
||||
reqScope = rbacutils.ScopeSystem
|
||||
} else {
|
||||
input.IsPublic = nil
|
||||
input.PublicScope = string(rbacutils.ScopeNone)
|
||||
input.PublicScope = "" // string(rbacutils.ScopeNone)
|
||||
}
|
||||
case rbacutils.ScopeDomain:
|
||||
if input.PublicScope == string(rbacutils.ScopeSystem) {
|
||||
@@ -184,7 +184,7 @@ func SharableManagerValidateCreateData(
|
||||
reqScope = rbacutils.ScopeSystem
|
||||
} else {
|
||||
input.IsPublic = nil
|
||||
input.PublicScope = string(rbacutils.ScopeNone)
|
||||
input.PublicScope = "" // string(rbacutils.ScopeNone)
|
||||
}
|
||||
default:
|
||||
return input, errors.Wrap(httperrors.ErrInputParameter, "the resource is not sharable")
|
||||
|
||||
Reference in New Issue
Block a user