Conditionally disable edit check