Revised code to filter allowed reports at dao level