# Fehler: not allowed by security setting

**URL:** <https://forum.shopware.com/t/fehler-not-allowed-by-security-setting/51332>\
**Category:** Programmierung\
**Created:** [23. Februar 2018 um 07:13 UTC](https://forum.shopware.com/t/fehler-not-allowed-by-security-setting/51332 "2018-02-23T07:13:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![x2p](https://avatars.discourse-cdn.com/v4/letter/x/53a042/32.png) [@x2p](https://forum.shopware.com/u/x2p)\
**Post date:** [23. Februar 2018 um 07:13 UTC](https://forum.shopware.com/t/fehler-not-allowed-by-security-setting/51332/1 "2018-02-23T07:13:13Z")

</div>

Shopware Version 5.3.7,&nbsp;funktionierte vor 5.3 ohne Probleme.  
Fehlermeldung:&nbsp;directory Resources/views/frontend/custom/index.tpl’ **not allowed by security setting**

Die Änderung in der custom/index.tpl kommt nicht durch.

**Pluginroot/Subscriber/Custom.php&nbsp;**

```
public static function getSubscribedEvents()
{
	return [
		'Enlight_Controller_Action_PostDispatchSecure_Frontend_Detail' => 'onPostDispatchDetail'
	];
}

public function onPostDispatchDetail(\Enlight_Event_EventArgs $args)
{
    $controller = $args->getSubject();
	$view = $controller->View();

	$view->addTemplateDir($this->bootstrap->getPath() . '/Resources/views');
}

```

**Pluginroot/Resources/views/frontend/custom/index.tpl**

```
{extends file="parent:frontend/custom/index.tpl"}

{block name="frontend_custom_article_headline"}
    Titel: {$sCustomPage.description}
{/block}

```

Ich habe mich bereits mit folgendem Artikel in den Dev Docs auseinander gesetzt, allerdings mache ich es schon immer so, wie dort vorgegeben.

[https://developers.shopware.com/developers-guide/shopware-5-upgrade-guide-for-developers/#smarty-0](https://developers.shopware.com/developers-guide/shopware-5-upgrade-guide-for-developers/#smarty-0)

Hab ich etwas übersehen?
