Commit b7e8b7f2 authored by SimeonKesmev's avatar SimeonKesmev Committed by boshtian

Issue #3089660 by SimeonKesmev, gambry: "Request path exclusion" plugin definition is broken

parent fd0716d2
......@@ -252,7 +252,11 @@ class ContextManager {
$conditions = $context->getConditions();
// Apply context to any context aware conditions.
$this->applyContexts($conditions);
// Abort if the application of contexts has been unsuccessful
// similarly to BlockAccessControlHandler::checkAccess().
if (!$this->applyContexts($conditions)) {
return FALSE;
}
// Set the logic to use when validating the conditions.
$logic = $context->requiresAllConditions()
......
......@@ -11,9 +11,6 @@ use Drupal\system\Plugin\Condition\RequestPath;
* @Condition(
* id = "request_path_exclusion",
* label = @Translation("Request path exclusion"),
* context = {
* "request_path_exclusion" = @ContextDefinition("request_path_exclusion", label = @Translation("Request path exclusion"))
* }
* )
*/
class RequestPathExclusion extends RequestPath implements ContainerFactoryPluginInterface {
......
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