Skip to content

Commit

Permalink
fix: network created by sysadmin should be shared by default
Browse files Browse the repository at this point in the history
  • Loading branch information
Qiu Jian committed Jun 18, 2020
1 parent 08154fd commit 5c53ccc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/cloudcommon/db/sharablebase.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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")
Expand Down

0 comments on commit 5c53ccc

Please sign in to comment.