reads permissions recursive from baseDoc