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:
parent
5d0e6d9efc
commit
b4e866d7a2
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue