diff --git a/Documentation/ApiOverview/CommandControllers/Index.rst b/Documentation/ApiOverview/CommandControllers/Index.rst index 4d451cd136..7ff7c0046d 100644 --- a/Documentation/ApiOverview/CommandControllers/Index.rst +++ b/Documentation/ApiOverview/CommandControllers/Index.rst @@ -97,6 +97,12 @@ Create a custom command See the :ref:`Tutorial: Create a console command ` for details on how to create commands. +DataHandler usage +================= +Using the :ref:`DataHandler ` in a CLI command requires +backend authentication. +See :ref:`dataHandler-cli-command` for more information. + Read more ========== diff --git a/Documentation/ApiOverview/Typo3CoreEngine/UsingDataHandler/Index.rst b/Documentation/ApiOverview/Typo3CoreEngine/UsingDataHandler/Index.rst index 9de9ad682f..c6bc3e63aa 100644 --- a/Documentation/ApiOverview/Typo3CoreEngine/UsingDataHandler/Index.rst +++ b/Documentation/ApiOverview/Typo3CoreEngine/UsingDataHandler/Index.rst @@ -22,6 +22,7 @@ array you want to pass to the class and call a few methods. .. index:: pair: DataHandler; Symfony +.. _dataHandler-cli-command Using the DataHandler in a Symfony command ========================================== @@ -38,6 +39,11 @@ method, you should make sure that this user is initialized like this: \TYPO3\CMS\Core\Core\Bootstrap::initializeBackendAuthentication(); +If you forget to add the backend user authentication, an error similar to this +will occur: + + [1.2.1]: Attempt to modify table "pages" without permission + .. index:: pair: DataHandler; PHP .. _dataHandler-examples: