- Affected version
- 2.2.2
If
However
\XF\PermissionCache::cacheAllContentPerms() has been called, then $globalCacheRun is set which indicates all possible values for $permissionCombinationId/$contentType have been fetched.However
getContentPerms() function assumes does not check if $globalCacheRun is set for that combination, which can result in additional queries which are known rather than just simply returning null