Permits to mine metals, gold and copper have been revoked after Ecuador’s constitutional court has ruled that mining in the reserve violates the rights of nature.