Commit 995460cb authored by Shnapoo's avatar Shnapoo Committed by bgm

Issue #1653206 : handle Panels with access control

parent e3e94aca
......@@ -838,7 +838,14 @@ function boost_boost_menu_router($parts) {
// Handle panels.
if (isset($parts['menu_item']['page_callback']) && $parts['menu_item']['page_callback'] == 'page_manager_page_execute') {
$subtask_id = array_shift($parts['menu_item']['page_arguments']);
$page_arguments = $parts['menu_item']['page_arguments'];
// Issue #1653206 : panels with access control have serialized page arguments
if (! is_array($page_arguments)) {
$page_arguments = unserialize($page_arguments);
}
$subtask_id = array_shift($page_arguments);
$page = page_manager_page_load($subtask_id);
$task = page_manager_get_task($page->task);
if ($function = ctools_plugin_get_function($task, 'page callback')) {
......
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