update sync gateway to add access on edit.