Файл: concrete5.7.5.6/concrete/controllers/backend/user_interface/marketplace_item.php
Строк: 33
<?php
namespace ConcreteControllerBackendUserInterface;
use ConcreteControllerBackendUserInterface;
use ConcreteCoreLegacyTaskPermission;
use ConcreteCoreMarketplaceMarketplace;
use ConcreteCoreMarketplaceRemoteItem;
abstract class MarketplaceItem extends UserInterface
{
protected $marketplace;
protected $item;
public function on_start()
{
parent::on_start();
$this->marketplace = Marketplace::getInstance();
$this->item = RemoteItem::getByID($this->request->query->get('mpID'));
}
protected function canAccess()
{
$tp = new TaskPermission();
return $this->marketplace->isConnected() && $tp->canInstallPackages() && is_object($this->item);
}
}