Removed redundant doc.permissions assignments
base.all and base.getByQuery populates media fields