Issue #2256317 by sun: Remove static caching from WebTestBase::checkPermissions().