added permissions for documents based on edit of all contacts