It is different, because the access is tied to your contract/job.
But even if it were legal, this only shows the core problem:
That data should not be available to anyone at all.
Sure, they got fired, but I don't see them getting prosecuted. Doesn't seem to be a criminal legal difference.
Sure, they got fired, but I don't see them getting prosecuted. Doesn't seem to be a criminal legal difference.