normally ``global $user`` is on top of the function, so I'll re-move this up before merge.