| @@ -19,8 +19,10 @@ | ||
| 19 | 19 | } |
| 20 | 20 | |
| 21 | 21 | public function activeAutomation(): void |
| 22 | 22 | { |
| 23 | + wp_verify_nonce(acym_getVar('cmd', '_wpnonce'), 'acymnonce') || die('Invalid Token'); | |
| 24 | + | |
| 23 | 25 | $automationClass = new AutomationClass(); |
| 24 | 26 | $automation = $automationClass->getOneById(acym_getVar('int', 'id')); |
| 25 | 27 | $automation->active = 1; |
| 26 | 28 | $automationId = $automationClass->save($automation); |