Add optional permission checks up the containing branch of the page tree.