Skip to content

Commit

Permalink
Merge pull request #167 in PLUG_OPEN/backend_swagimportexport from bu…
Browse files Browse the repository at this point in the history
…gfix/PT-6190-Fix-CSRF-check to next

* commit '0b2969a89ad3dfc1772d7dc7b051c70bd8e325e5':
  PT-6190 - Fix CSRF check
  • Loading branch information
mitelg committed Jul 5, 2016
2 parents 06fd67c + 0b2969a commit f30ec42
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion Controllers/Backend/SwagImportExportCron.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,20 +28,31 @@
use Shopware\Components\SwagImportExport\Utils\CommandHelper;
use Shopware\CustomModels\ImportExport\Profile;
use Shopware\Models\Media\Album;
use \Shopware\Components\CSRFWhitelistAware;

/**
* Shopware ImportExport Plugin
*
* @category Shopware
* @copyright Copyright (c) shopware AG (http://www.shopware.de)
*/
class Shopware_Controllers_Backend_SwagImportExportCron extends Shopware_Controllers_Backend_ExtJs
class Shopware_Controllers_Backend_SwagImportExportCron extends Shopware_Controllers_Backend_ExtJs implements CSRFWhitelistAware
{
/**
* @var ModelManager
*/
protected $manager;

/**
* @inheritdoc
*/
public function getWhitelistedCSRFActions()
{
return [
'cron'
];
}

public function init()
{
Shopware()->Plugins()->Backend()->Auth()->setNoAuth();
Expand Down

0 comments on commit f30ec42

Please sign in to comment.