Blocking data




I am designing an application in which an "administrator" is available of editing some information and I have come up with the following question:
in case there are several administrators, there has to be a way of "blocking" data when it is being edited so that the changes performed by different administrators do not overlap.
I think a possible solution is to have a table with a field that is 0 when no one is editing the information and 1 when it is blocked, so that when the administrator enters the "editing form" this field is automatically set to 0 and when the administrator ends with the changes, the field goes back to 1.
I would appreciate if someone has an idea of a more efficient way of solving this problem or any suggestions to the solution I came out with.

Thanks in advance. Victor