I want to restrict concurrent edit by the users.
If user A is editing a content then user B should not be able to edit the content at the same time. That content should be visible, just not editable.
I am unable to find any module that provides this feature for Drupal 7.
Is there any module, or how can I achieve this programmatically?