Merge pull request #1135 in YUNIONIO/onecloud from ~LIZEXI/onecloud:hotfix/lzx-virtualres-projectid-visible to release/2.7.0

* commit '9312401932f965b8d9bf251e4d27f67e42115c8f':
  cloudcommon: virtualresource ProjectId visible when user list
This commit is contained in:
邱剑
2019-02-28 20:44:53 +08:00
+1 -1
View File
@@ -29,7 +29,7 @@ func NewVirtualResourceBaseManager(dt interface{}, tableName string, keyword str
type SVirtualResourceBase struct {
SStatusStandaloneResourceBase
ProjectId string `name:"tenant_id" width:"128" charset:"ascii" nullable:"false" index:"true" list:"admin"`
ProjectId string `name:"tenant_id" width:"128" charset:"ascii" nullable:"false" index:"true" list:"user"`
IsSystem bool `nullable:"true" default:"false" list:"admin" create:"optional"`