Children would be barred from dangerous professions but could work for relatives in most other types of jobs.