Avoid duplicating code: use user_get_all_accessible_projects api

Remove double assignment of  $t_project_ids_to_check