Is it legally permissible for two buildings to share drainage facilities?

There can be circumstances in which the local authority will permit this, they may even allow for a private sewer to be constructed.