Closed (duplicate)
Project:
Masquerade
Version:
8.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
9 Sep 2015 at 09:45 UTC
Updated:
14 Nov 2015 at 09:23 UTC
Jump to comment: Most recent
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