Non-JS version of filter by role