Moved recursive modify permissions method into callback