Require a method to delete any node fro the heirarchy. This will include - A "CanDelete" method, which returns a list of errors (strings), or an empty list if deletion is llowed - Removing the node from `parent().children` To delete a record, : - it must not exist on any `index.allowedRecordNodeIds` - it must not exist on and reference type fields - these rules should apply to any child nodes , which will also be deleted To delete an index: - it must not be being used as lookup index for a reference field - it must not be a "reverse reference" index Aggregate Group Nodes ? Should be straight forward There may be other tidyup thinks that need to happen when a node is deleted. need to think about that
Activity
[-]templateApi> deleteNode method(s)[/-][+]Core - templateApi> deleteNode method(s)[/+][-]Core - templateApi> deleteNode method(s)[/-][+]templateApi> deleteNode method(s)[/+]Merge pull request #6 from Budibase/security/vuln-167-blacklist-trans…