Issue #2340507 by chx, Wim Leers: Make the new AccessResult API and implementation even better.