IMPR: Allow to disable security token

This commit is contained in:
Tony Air 2024-08-14 17:46:47 +02:00
parent bc48151da8
commit c1e5abe65a

View File

@ -164,6 +164,10 @@ class PageControllerEx extends Extension
}
$form->setLegend('Search at ' . $config->getField('Title'));
if (Page::config()->get('search_disable_security_token')) {
$form->disableSecurityToken();
}
return $form;
}