patch to set user type as System User if user has a role and if previous user type is Partner