This would be easier to understand if the parameter 'permit' were named 'permits' or 'requestedPermits'.