CRM-13487 declare user as global earlier