Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Currently the d8 block is crashing the site.
\Drupal\masquerade\Plugin\Block\MasqueradeBlock::blockAccess should read:
protected function blockAccess(AccountInterface $account) {
if ($account->hasPermission('masquerade as any user') && !$this->masquerade->isMasquerading()) {
return AccessResult::allowed()
}
return AccessResult::forbidden();
}
Comments
Comment #2
andypostDuplicate of #2575707: Masquerade Block on Front Page crashes Drupal