Commit 92c311c2 authored by alexpott's avatar alexpott

Issue #2785991 by blazey, dawehner: Unnecessary call to...

Issue #2785991 by blazey, dawehner: Unnecessary call to AccessResult::neutral() in Drupal\Core\Access\AccessManager::check()
parent d32fe807
......@@ -130,10 +130,6 @@ public function check(RouteMatchInterface $route_match, AccountInterface $accoun
$result = AccessResult::neutral();
if (!empty($checks)) {
$arguments_resolver = $this->argumentsResolverFactory->getArgumentsResolver($route_match, $account, $request);
if (!$checks) {
return AccessResult::neutral();
}
$result = AccessResult::allowed();
foreach ($checks as $service_id) {
$result = $result->andIf($this->performCheck($service_id, $arguments_resolver));
......
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