mirror of
https://github.com/Oreolek/kangana.git
synced 2024-06-26 03:40:56 +03:00
No need to open secure URLs in dev environment
This commit is contained in:
parent
5d0e6d9efc
commit
b4e866d7a2
|
@ -15,8 +15,7 @@ class Controller_Layout extends Controller {
|
||||||
{
|
{
|
||||||
parent::before();
|
parent::before();
|
||||||
$action_name = $this->request->action();
|
$action_name = $this->request->action();
|
||||||
if (Kohana::$environment === Kohana::PRODUCTION
|
if (is_array($this->secure_actions)
|
||||||
AND is_array($this->secure_actions)
|
|
||||||
AND in_array($action_name, $this->secure_actions, TRUE))
|
AND in_array($action_name, $this->secure_actions, TRUE))
|
||||||
{
|
{
|
||||||
if (Auth::instance()->logged_in() === FALSE)
|
if (Auth::instance()->logged_in() === FALSE)
|
||||||
|
|
Loading…
Reference in a new issue