Fixed a regression where any route that called checkPermissions wouldn't work.