update entries if permissions have changed

we put documents with changed permissions into the "import_file" loop.