Skip to content
Snippets Groups Projects
Commit 8bbad1e6 authored by Torsten Oppermann's avatar Torsten Oppermann
Browse files

[TASK] Fixed a bug with session and template blacklisting

parent 233f3c70
No related branches found
No related tags found
1 merge request!6Feature 4 3
......@@ -118,7 +118,11 @@ class MailController extends ActionController {
if ($parameters['selectedTemplate'] === NULL || $parameters['selectedTemplate'] === '') {
if (
$this->session->getDataByKey('selectedTemplate') !== NULL &&
$this->session->getDataByKey('selectedExtension') !== NULL
$this->session->getDataByKey('selectedExtension') !== NULL &&
!MailTemplateService::isTemplateBlacklisted(
$this->session->getDataByKey('selectedExtension'), $this->session->getDataByKey('selectedTemplate'),
$pid
)
) {
$parameters['selectedTemplate'] = $this->session->getDataByKey('selectedTemplate');
$parameters['selectedExtension'] = $this->session->getDataByKey('selectedExtension');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment