You could also add access=no to the fence if the path is otherwise accessible, but there should be explicit tagging. Having no access tags on the path nor the gate/fence leaves the accessibility undefined. The iD editor shows the default as access=yes for that situation, which would be wrong.