Issue #3504114: If edit own content is added, then the cache context user is...
1 unresolved thread
Merge request reports
Activity
219 227 $cacheability->addCacheContexts(['user.roles:authenticated']); 228 220 229 // The "view own unpublished content" permission must not be granted 221 230 // to anonymous users for security reasons. 222 231 if (!$account->isAuthenticated()) { 223 232 return NULL; 224 233 } 225 234 235 // When access is granted due to the 'view own unpublished content' 236 // permission and for no other reason, node grants are bypassed. However, 237 // to ensure the full set of cacheable metadata is available to variation 238 // cache, additionally add the node_grants cache context so that if the 239 // status or the owner of the node changes, cache redirects will continue to 240 // reflect the latest state without needing to be invalidated. 226 241 $cacheability->addCacheContexts(['user']); 242 if ($this->moduleHandler->hasImplementations('node_grants')) {
Please register or sign in to reply