Skip to content

Instantly share code, notes, and snippets.

@BugBuster1701
Last active December 14, 2015 01:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BugBuster1701/5009577 to your computer and use it in GitHub Desktop.
Save BugBuster1701/5009577 to your computer and use it in GitHub Desktop.
dcaconfig.php und Contao 4
//Contao 2
if ($this->User->isAdmin)
{
...
}
//Contao 4
if (BackendUser::getInstance()->isAdmin)
{
}
/* Grund: This is due to the Controller::loadDataContainer() method being static now. */
@BugBuster1701
Copy link
Author

LF: Hm, you are right. Maybe we should continue to load the files in the object context and only change it in Contao 4.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment