1
0
Fork 0
mirror of https://github.com/Oreolek/kangana.git synced 2024-05-04 18:18:17 +03:00

No need to open secure URLs in dev environment

This commit is contained in:
Alexander Yakovlev 2016-10-12 10:40:03 +07:00
parent 5d0e6d9efc
commit b4e866d7a2

View file

@ -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)