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
......@@ -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.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment