Don't send access details in the schema as it's too large

This commit is contained in:
Darren Shepherd 2020-03-21 22:31:13 -07:00
parent 7395e5b8c4
commit 2daf0ce8ee

View File

@ -18,10 +18,12 @@ func NewSchemaStore() types.Store {
} }
func toAPIObject(schema *types.APISchema) types.APIObject { func toAPIObject(schema *types.APISchema) types.APIObject {
s := schema.DeepCopy()
delete(s.Schema.Attributes, "access")
return types.APIObject{ return types.APIObject{
Type: "schema", Type: "schema",
ID: schema.ID, ID: schema.ID,
Object: schema, Object: s,
} }
} }