1
0
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:
Darren Shepherd
2018-01-16 18:06:32 -07:00
parent 12307ed273
commit 636c4a3723

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() && schema.CanCreate() {
if schema.CanList(nil) && schema.CanCreate(nil) {
schema.ResourceFields["creatorId"] = types.Field{
Type: "reference[user]",
CodeName: "CreatorID",