Significantly improve the recursive edition permission speed.
Merge pull request #919 from ngodfraind/master

Significantly improve the recursive edition permission speed.