[TASK] Ensure that cli user is admin on extension install and uninstall
Extension install and uninstall is an admin task. Calling the belonging CommandController on cli should ensure, that the user has admin rights. This adds API to the CommandController to avoid code duplication in every controller to achieve this. Distribution packages could be installed via cli without errors now. Resolves: #59556 Releases: 6.3, 6.2 Change-Id: Icd1b6bf4379322c8bec07531a15d2171b103e076 Reviewed-on: https://review.typo3.org/30715 Reviewed-by: Ernesto Baschny Tested-by: Ernesto Baschny
Showing
- typo3/sysext/extbase/Classes/Mvc/Controller/CommandController.php 44 additions, 0 deletions...sext/extbase/Classes/Mvc/Controller/CommandController.php
- typo3/sysext/extbase/Tests/Unit/Mvc/Controller/CommandControllerTest.php 26 additions, 1 deletion...tbase/Tests/Unit/Mvc/Controller/CommandControllerTest.php
- typo3/sysext/extensionmanager/Classes/Command/ExtensionCommandController.php 5 additions, 0 deletions...ionmanager/Classes/Command/ExtensionCommandController.php
Please register or sign in to comment