| @@ -394,9 +394,9 @@ | ||
| 394 | 394 | } |
| 395 | 395 | } |
| 396 | 396 | |
| 397 | 397 | // Having access to campaigns gives access to some email actions |
| 398 | - if ($controller === 'mails' && $task === 'getTemplateAjax' && acym_isAllowed('campaigns')) { | |
| 398 | + if ($controller === 'mails' && in_array($task, ['autoSave', 'getTemplateAjax']) && acym_isAllowed('campaigns')) { | |
| 399 | 399 | return true; |
| 400 | 400 | } |
| 401 | 401 | |
| 402 | 402 | // The language management is made in the configuration |