1
0
Fork 0
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:
Alexander Yakovlev 2014-01-28 10:26:52 +07:00
parent 024c69870d
commit 377fc530cc

View file

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