diff --git a/backend/config/main.php b/backend/config/main.php index dc79482..d9fc4d6 100755 --- a/backend/config/main.php +++ b/backend/config/main.php @@ -27,7 +27,7 @@ return [ 'site' => [ [ - 'actions' => ['login', 'error' ], + 'actions' => ['login', 'error','logout', 'index' ], 'allow' => true, ] diff --git a/backend/controllers/SiteController.php b/backend/controllers/SiteController.php index 49d0aa2..ff13865 100755 --- a/backend/controllers/SiteController.php +++ b/backend/controllers/SiteController.php @@ -28,18 +28,6 @@ class SiteController extends Controller public function behaviors() { return [ - 'access'=>[ - 'class' => AccessBehavior::className(), - 'rules' => - ['site' => - [ - [ - 'actions' => ['login', 'error','logout'], - 'allow' => true, - ] - ] - ] - ], 'verbs' => [ 'class' => VerbFilter::className(), 'actions' => [ -- libgit2 0.21.4