Lock filters in Listview

I am searching how to lock the filters in a doctype listview. This is how I’m setting the filters:

frappe.listview_settings['Task'] = {
    onload() {
        frappe.route_options = {
            "assigned_user": ["=", frappe.session.user_email]
        };
    },

}

But I don’t want a certain role to be able to change/delete this filter.