Checking approval status of documents and machines