Permission tree implementation.