Update roleAssignments javascript to not allow more than one of each type to be added