Skip to content
Snippets Groups Projects
Commit 41de2ac6 authored by Sakthi Shanmuga Sundaram M's avatar Sakthi Shanmuga Sundaram M Committed by Steve Luongo
Browse files

Issue#3363469: Resolve string php deprecation.

parent 847e284d
Branches
Tags
1 merge request!4Issue#3363469: Resolve string php deprecation.
......@@ -34,7 +34,7 @@ class RouteAccessChecks implements AccessInterface {
}
// Get a list of the restricted routes from config
$config_route_paths = $config->get('menu_custom_access.routes');
$config_route_paths = $config->get('menu_custom_access.routes') ?? '';
$route_paths = preg_split('/\r\n|\r|\n/', $config_route_paths);
$config_roles = $config->get('menu_custom_access.roles');
$account_has_role = array_intersect($account->getRoles(), $config_roles);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment