Updating ranks to have parent ranks, and updating permissions to handle inherited permissions