use another way to check if the datastore is enabled in layer_edit_check