Skip to content

Commit

Permalink
PT-6190 - Fix CSRF check
Browse files Browse the repository at this point in the history
  • Loading branch information
hlohaus committed Jul 5, 2016
1 parent 36f67bf commit 0b2969a
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 0b2969a

Please sign in to comment.