mirror of
https://github.com/rancher/types.git
synced 2025-09-16 06:49:21 +00:00
Cluster status
This commit is contained in:
@@ -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",
|
||||
|
Reference in New Issue
Block a user