after updating a file, pull the permission