From b4e866d7a2c691b305c8face55c47ea9be3bb651 Mon Sep 17 00:00:00 2001 From: Alexander Yakovlev Date: Wed, 12 Oct 2016 10:40:03 +0700 Subject: [PATCH] No need to open secure URLs in dev environment --- application/classes/Controller/Layout.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/application/classes/Controller/Layout.php b/application/classes/Controller/Layout.php index 5a47f19..c6221d2 100644 --- a/application/classes/Controller/Layout.php +++ b/application/classes/Controller/Layout.php @@ -15,8 +15,7 @@ class Controller_Layout extends Controller { { parent::before(); $action_name = $this->request->action(); - if (Kohana::$environment === Kohana::PRODUCTION - AND is_array($this->secure_actions) + if (is_array($this->secure_actions) AND in_array($action_name, $this->secure_actions, TRUE)) { if (Auth::instance()->logged_in() === FALSE)