added deletePackage action for Extension controller

This commit is contained in:
Taras Machyshyn
2014-09-29 17:19:43 +03:00
parent 9e0e743dc5
commit c3bbdb2722

View File

@@ -79,6 +79,19 @@ class Extension extends \Espo\Core\Controllers\Record
return true;
}
public function actionDeletePackage($params, $data, $request)
{
if (!$request->isPost()) {
throw new Forbidden();
}
$manager = new \Espo\Core\ExtensionManager($this->getContainer());
$manager->delete($data['id']);
return true;
}
public function actionCreate()
{
throw new Forbidden();