changed when condition for roles/tasks/users