Skip to content

Commit

Permalink
cloudcommon: allow create:"domain" tag
Browse files Browse the repository at this point in the history
Fixes panic: model manager hosts: column manager_uri has invalid tag
create:"domain", expecting [required optional domain_required
domain_optional admin_required admin_optional]
  • Loading branch information
yousong committed Apr 24, 2020
1 parent 69ae7ca commit 1438966
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion pkg/cloudcommon/db/models.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,15 @@ func RegisterModelManager(modelMan IModelManager) {

func mustCheckModelManager(modelMan IModelManager) {
allowedTags := map[string][]string{
"create": {"required", "optional", "domain_required", "domain_optional", "admin_required", "admin_optional"},
"create": {
"required",
"optional",
"domain",
"domain_required",
"domain_optional",
"admin_required",
"admin_optional",
},
"search": {"user", "domain", "admin"},
"get": {"user", "domain", "admin"},
"list": {"user", "domain", "admin"},
Expand Down

0 comments on commit 1438966

Please sign in to comment.