Make use of user_get_accessible_projects instead of duplicating code