Filter Listview

Is there a way to script server-side filters (or something with the same results) to lists that are not user removable?

Like these:

I would like to filter the list for some users and not all (for example the administrator must be able to see everything)

You do this using DocTYpe level User permissions. You can watch the ERPNext tutorial videos on User Permissions.

Thanks Joseph,
In this way I have to define permissions user by user, but I have to filter them based on the role and some fields of my doctype(the field is a child table).
How could i do?