Unless NZ is significantly different from most other countries, no one has a right to a resident visa (although some people might have a right to citizenship, such as by descent), so they can already arbitrarily determine whether or not to grant a resident visa.