Use $wgUser instead of the User from the context in Article::view() and Article:...