diff --git a/src/Filter/Login.php b/src/Filter/Login.php index e2b5cff..63c7ff5 100644 --- a/src/Filter/Login.php +++ b/src/Filter/Login.php @@ -166,9 +166,9 @@ class Filter_Login extends Filter_Filter $module = $request->get('module'); $action = $request->get('action'); - $file = Path::join(CMS_PATH, 'modules', $module, 'filters', 'white.php'); + $file = Path::join(CMS_PATH, 'modules', $module, 'filters', 'white.json'); if (file_exists($file)) { - $whiteList = include $file; + $whiteList = json_decode(file_get_contents($file), true); if (in_array($action, $whiteList)) { return true; }