Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
36 lines (29 sloc) 789 Bytes
<?php
/**
* @link https://craftcms.com/
* @copyright Copyright (c) Pixel & Tonic, Inc.
* @license https://craftcms.github.io/license/
*/
namespace craft\commerce\controllers;
use craft\commerce\web\assets\commercecp\CommerceCpAsset;
/**
* Class BaseCp
*
* @author Pixel & Tonic, Inc. <support@pixelandtonic.com>
* @since 2.0
*/
class BaseCpController extends BaseController
{
// Public Methods
// =========================================================================
/**
* @inheritdoc
*/
public function init()
{
// All system setting actions require access to commerce
$this->requirePermission('accessPlugin-commerce');
$this->getView()->registerAssetBundle(CommerceCpAsset::class);
parent::init();
}
}
You can’t perform that action at this time.