Skip to content
Snippets Groups Projects
Commit 6ac63250 authored by catch's avatar catch
Browse files

Issue #2931339 by manuel.adan: Unused variable $admin_permission in...

Issue #2931339 by manuel.adan: Unused variable $admin_permission in EntityAccessControlHandler::checkAccess
parent aee6bea5
Branches
Tags
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -158,7 +158,7 @@ protected function checkAccess(EntityInterface $entity, $operation, AccountInter
return AccessResult::forbidden()->addCacheableDependency($entity);
}
if ($admin_permission = $this->entityType->getAdminPermission()) {
return AccessResult::allowedIfHasPermission($account, $this->entityType->getAdminPermission());
return AccessResult::allowedIfHasPermission($account, $admin_permission);
}
else {
// No opinion.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment