Fixed bad restriction

On query, restriction to use transaction connection is giving the opposite result, removed "!" operator.