Does Islam allows for post mortem if not, then the family or the person who gets post mortemed needs to answer to Allah swt?

It is not permissible to post mortem the body of a Muslim, unless there is the innocence of a person accused of killing him, for example.