Implementing filtering by role.