Skip to content

Commit

Permalink
Use CSRF on all other location.
Browse files Browse the repository at this point in the history
Signed-off-by: crynobone <crynobone@gmail.com>
  • Loading branch information
crynobone committed Nov 11, 2014
1 parent 7c24ae4 commit 09f93d1
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/Foundation/Routing/AccountController.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ public function __construct(AccountProcessor $processor)
protected function setupFilters()
{
$this->beforeFilter('orchestra.auth');
$this->beforeFilter('orchestra.csrf', array('on' => 'post'));
}

/**
Expand Down
1 change: 1 addition & 0 deletions src/Foundation/Routing/ExtensionsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ protected function setupFilters()
{
$this->beforeFilter('orchestra.auth');
$this->beforeFilter('orchestra.manage');
$this->beforeFilter('orchestra.csrf', array('on' => 'post'));
}

/**
Expand Down
1 change: 1 addition & 0 deletions src/Foundation/Routing/PublisherController.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ public function __construct(PublisherProcessor $processor)
protected function setupFilters()
{
$this->beforeFilter('orchestra.auth');
$this->beforeFilter('orchestra.csrf', array('on' => 'post'));
}

/**
Expand Down
3 changes: 1 addition & 2 deletions src/Foundation/Routing/ResourcesController.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,7 @@ public function index()
/**
* Add a drop-in resource anywhere on Orchestra
*
* @param string $request
* @param array $arguments
* @param string $request
* @return Response
*/
public function call($request)
Expand Down
1 change: 1 addition & 0 deletions src/Foundation/Routing/SettingsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ protected function setupFilters()
{
$this->beforeFilter('orchestra.auth');
$this->beforeFilter('orchestra.manage');
$this->beforeFilter('orchestra.csrf', array('on' => 'post'));
}

/**
Expand Down
1 change: 1 addition & 0 deletions src/Foundation/Routing/UsersController.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ protected function setupFilters()
{
$this->beforeFilter('orchestra.auth');
$this->beforeFilter('orchestra.manage:users');
$this->beforeFilter('orchestra.csrf', array('on' => 'post'));
}

/**
Expand Down

0 comments on commit 09f93d1

Please sign in to comment.