Commit 035372c1 authored by pobster's avatar pobster Committed by paulocs

Issue #3137698 by pobster, angrytoast, Drupal Centric, paulocs, super_romeo:...

Issue #3137698 by pobster, angrytoast, Drupal Centric, paulocs, super_romeo: RequestPathExclusion breaks ALL new block access
parent 821c962b
......@@ -28,6 +28,11 @@ class RequestPathExclusion extends RequestPath implements ContainerFactoryPlugin
* {@inheritdoc}
*/
public function evaluate() {
// Allow this to pass through gracefully when blank.
$pages = mb_strtolower($this->configuration['pages']);
if (!$pages) {
return TRUE;
}
return !parent::evaluate();
}
}
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