FilterSchema filters properties in the schema itself
(
properties map[string]interface{},
propertiesOrder, required []string,
)
| 480 | |
| 481 | //FilterSchema filters properties in the schema itself |
| 482 | func (p *Policy) FilterSchema( |
| 483 | properties map[string]interface{}, |
| 484 | propertiesOrder, required []string, |
| 485 | ) (map[string]interface{}, []string, []string) { |
| 486 | filter := p.resource.PropertiesFilter |
| 487 | return filter.RemoveHiddenKeysFromMap(properties), |
| 488 | filter.RemoveHiddenKeysFromSlice(propertiesOrder), |
| 489 | filter.RemoveHiddenKeysFromSlice(required) |
| 490 | } |
| 491 | |
| 492 | //Checks if user is authorized to perform given action |
| 493 | func (p *Policy) Check(action string, authorization Authorization, data map[string]interface{}) error { |
no test coverage detected