Fixes CURRENT_USER undefined issue. (Problem was in StaticPagesController -- was allowing entry without current user being set).