1
0
mirror of https://github.com/rancher/types.git synced 2025-09-16 06:49:21 +00:00

Cluster status

This commit is contained in:
Darren Shepherd
2018-03-31 03:15:08 -07:00
parent da232d3e4f
commit 0d8a522a36
4 changed files with 18 additions and 13 deletions

View File

@@ -22,7 +22,7 @@ func (c *Creator) ToInternal(data map[string]interface{}) {
}
func (c *Creator) ModifySchema(schema *types.Schema, schemas *types.Schemas) error {
if schema.CanList(nil) && schema.CanCreate(nil) {
if schema.CanList(nil) == nil && schema.CanCreate(nil) == nil {
schema.ResourceFields["creatorId"] = types.Field{
Type: "reference[/v3/schemas/user]",
CodeName: "CreatorID",