mirror of
https://github.com/rancher/types.git
synced 2025-09-09 00:48:56 +00:00
schema access control changes
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() && schema.CanCreate() {
|
||||
if schema.CanList(nil) && schema.CanCreate(nil) {
|
||||
schema.ResourceFields["creatorId"] = types.Field{
|
||||
Type: "reference[user]",
|
||||
CodeName: "CreatorID",
|
||||
|
Reference in New Issue
Block a user