I am working on a custom content model that has a property of document status. The allowed values are Pending, approved, paid, exported.
When a document is uploaded the document is automatically marked as pending and the user can mark it as approved.
There is a script that runs nightly that will export the metadata to a third party system and mark it as Exported.
My question is how can I make it so that a user can only mark the document as pending or approved But they can not change it after it has been marked as exported or paid.
Any answers will be much appreciated.