- Issue created by @mglaman
- πΊπΈUnited States mglaman WI, USA
The same is true for \Drupal\node\NodeAccessControlHandler::checkCreateAccess
Parent:
protected function checkCreateAccess(AccountInterface $account, array $context, $entity_bundle = NULL) { if ($admin_permission = $this->entityType->getAdminPermission()) { return AccessResult::allowedIfHasPermission($account, $admin_permission); } else { // No opinion. return AccessResult::neutral(); } }
Node:
protected function checkCreateAccess(AccountInterface $account, array $context, $entity_bundle = NULL) { return AccessResult::allowedIf($account->hasPermission('create ' . $entity_bundle . ' content'))->cachePerPermissions(); }
It should call the parent as well.