new: [automation description] Added legacy mode toggle

pull/3626/head
iglocska 2018-09-05 17:56:27 +02:00
parent fbb9e21fe5
commit daaa5a1f1f
1 changed files with 4 additions and 1 deletions

View File

@ -2268,7 +2268,7 @@ class EventsController extends AppController
}
}
public function automation()
public function automation($legacy = false)
{
// Simply display a static view
if (!$this->userRole['perm_auth']) {
@ -2294,6 +2294,9 @@ class EventsController extends AppController
$rpzSettings = $this->Server->retrieveCurrentSettings('Plugin', 'RPZ_');
$this->set('rpzSettings', $rpzSettings);
$this->set('hashTypes', array_keys($this->Event->Attribute->hashTypes));
if ($legacy) {
$this->render('legacy_automation');
}
}
public function export()