You are here

public function PanelizerUIAccess::access in Panelizer 8.3

Same name and namespace in other branches
  1. 8.5 src/Access/PanelizerUIAccess.php \Drupal\panelizer\Access\PanelizerUIAccess::access()
  2. 8.4 src/Access/PanelizerUIAccess.php \Drupal\panelizer\Access\PanelizerUIAccess::access()

Overrides AccessInterface::access

File

src/Access/PanelizerUIAccess.php, line 14

Class

PanelizerUIAccess

Namespace

Drupal\panelizer\Access

Code

public function access(AccountInterface $account) {
  return $account
    ->hasPermission('administer panelizer') ? AccessResult::allowed() : AccessResult::forbidden();
}