fix unit applications ambiguity when trying to get a list of
units-applied-for to use in the unit listing, when the person requesting
the list also has access to see all of the applications (the former only
gets a list of unit IDs, the latter gets all pending apps)