Commit f2630dc6 authored by webchick's avatar webchick

Issue #2062091 by m1r1k: Remove references to global in Block module.

parent e8e45c80
......@@ -288,7 +288,7 @@ function _block_get_renderable_region($list = array()) {
// to other users. We therefore exclude user 1 from block caching.
$not_cacheable = Drupal::currentUser()->id() == 1 ||
count(Drupal::moduleHandler()->getImplementations('node_grants')) ||
!\Drupal::request()->isMethodSafe();
!Drupal::request()->isMethodSafe();
foreach ($list as $key => $block) {
$settings = $block->get('settings');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment