How to filter records based on docment states?

Until v7, we used get_permissions_query_conditions to filter records. Ex: Purchase User will able to see Material Requests of type ‘Purchase’ only.

How is it done v8? I don’t see that section in hooks.py

Thanks
Krithi