move roleIds assignment before function return

in some cases GetAuthInfo returned before roleIds assignment