Skip to content

Commit

Permalink
removed AccessControl and VerbFilter from SiteController
Browse files Browse the repository at this point in the history
  • Loading branch information
hiqsol committed Sep 16, 2016
1 parent dbd322b commit 60fdde0
Showing 1 changed file with 0 additions and 28 deletions.
28 changes: 0 additions & 28 deletions src/controllers/SiteController.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@

use Yii;
use yii\captcha\CaptchaAction;
use yii\filters\AccessControl;
use yii\filters\VerbFilter;
use yii\web\Controller;
use yii\web\ErrorAction;
use hisite\actions\RenderAction;
Expand All @@ -23,32 +21,6 @@

class SiteController extends Controller
{
/**
* {@inheritdoc}
*/
public function behaviors()
{
return [
'access' => [
'class' => AccessControl::class,
'only' => ['logout'],
'rules' => [
[
'actions' => ['logout'],
'allow' => true,
'roles' => ['@'],
],
],
],
'verbs' => [
'class' => VerbFilter::class,
'actions' => [
'logout' => ['post'],
],
],
];
}

/**
* {@inheritdoc}
*/
Expand Down

0 comments on commit 60fdde0

Please sign in to comment.