I want to revert back the last updated version of Document through Event Receiver on specific condition occurred.
I have 1 Document Library, in which I have assigned a content type. In content type there is a 1 field based on that, I want to remove the last saved version of document. Or you can say document update by some specific user (the username is found in the custom field), then I don't want to allow to create new version of that document.
FYI - this case occurs only when someone tries to save the document through word application.
Kindly guide me how I can achieve this.