Issue #2061921 by sergeypavlenko, m1r1k, alweb: Remove calls to deprecated global $user in views module.