added function hasRoleOnProject()