mirror of
https://github.com/Oreolek/kangana.git
synced 2024-06-26 03:40:56 +03:00
fixed secure actions
This commit is contained in:
parent
024c69870d
commit
377fc530cc
|
@ -18,7 +18,7 @@ class Controller_Layout extends Controller {
|
|||
if (
|
||||
Kohana::$environment === Kohana::PRODUCTION &&
|
||||
is_array($this->secure_actions) &&
|
||||
array_key_exists($action_name, $this->secure_actions)
|
||||
in_array($action_name, $this->secure_actions, TRUE)
|
||||
)
|
||||
{
|
||||
if ( Auth::instance()->logged_in() === FALSE)
|
||||
|
|
Loading…
Reference in a new issue