Filter document listview

Is there a way to add filters (via script or something else) to lists that are not user removable?

I have to make filter based on the user role and the value of a child table in the doctype.

Something like the list filter (pic below) but without the X button:

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

Maybe it is possible to directly supply a sql query or an array of docs to the listview so that only the desired rows are displayed?