[TASK] Ensure that cli user is admin on extension install and uninstall 15/30715/4
authorMarc Bastian Heinrichs <typo3@mbh-software.de>
Fri, 13 Jun 2014 14:24:57 +0000 (16:24 +0200)
committerErnesto Baschny <ernst@cron-it.de>
Thu, 19 Jun 2014 16:32:57 +0000 (18:32 +0200)
commit6e3ba2a51107478ffcc85885d3c285135e41c2dc
tree714e5389d110184fafabb6532c1dfe45c576edf0
parentf7d19ae59b822b4c2ad9658c5d615b2c5a21f377
[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
typo3/sysext/extbase/Classes/Mvc/Controller/CommandController.php
typo3/sysext/extbase/Tests/Unit/Mvc/Controller/CommandControllerTest.php
typo3/sysext/extensionmanager/Classes/Command/ExtensionCommandController.php