public functioncheck(Request $request) {
// Note that this regular expression matches the end of pathinfo in order to// support multilingual sites using path prefixes.if (preg_match('#/toolbar/subtrees/[^/]+(/[^/]+)?$#', $request->getPathInfo())) {
return static::ALLOW;
}
}