Add checking permission of menu nodes and items.