As an ex Class Two referee I would say that he was stupid to disallow the goal, club linesmen cheat, when they are players as well they cheat more, The club linesman indicates in and out of play and offside, the latter the ref can agree with or not if he/she is positioned well, ie running an S.