[TASK] Ensure that cli user is admin on extension install and uninstall 85/30885/2
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:35:36 +0000 (18:35 +0200)
commit6fbac4bb717dbd1a7c7c412330f8525d9ac98af0
treec0f9e7c0da03229b2ea354f73036b1ee70219510
parent08ab8684ce8cd38f2369a5efd697d0dce66efec3
[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
Reviewed-on: https://review.typo3.org/30885
typo3/sysext/extbase/Classes/Mvc/Controller/CommandController.php
typo3/sysext/extbase/Tests/Unit/Mvc/Controller/CommandControllerTest.php
typo3/sysext/extensionmanager/Classes/Command/ExtensionCommandController.php