contao/import — Issue #3569: $this->User->isAdmin not always accessiable in dcaconfig.php file
Author: DyaGa
Created: 2011-11-29 21:48:40+00:00
State: open
Labels: backend, Defect, Invalid

How to reproduce this in Demo.

1. make some changes in `dcaconfig.php`, for example:

```
if (!$this->User->isAdmin)
{
unset($GLOBALS['BE_MOD']['content']['form']);
}
```

2. go to backend and you will see that everything is ok. `Form generator` link is visible in Content section. But...

3. now, go to `Articles` section and click on any `"Edit article"` button. You will see that `Form generator` link disappeared.

Also, you can go to `News archive` section or `Calendars events` section and you will see that `Form generator` link becomes invisible. But for user `Admin` it should be always vissible.

--- _Originally created on October 21st, 2011, at 08:49pm (ID 3569)_