diff --git a/app/controllers/DefaultController.php b/app/controllers/DefaultController.php index d101250d99..43a0c0955d 100644 --- a/app/controllers/DefaultController.php +++ b/app/controllers/DefaultController.php @@ -50,7 +50,7 @@ public function __call($method, $path) { if($path[0][sizeof($path[0])-1] === '_default') { $def_path = $path[0]; array_pop($def_path); - $content = $content = ca_site_pages::renderPageForPath($this, "/".trim(join("/", $def_path), "/"), ['incrementViewCount' => true, 'checkAccess' => caGetUserAccessValues()]); + $content = $content = ca_site_pages::renderPageForPath($this, "/".trim(join("/", $def_path), "/"), ['incrementViewCount' => true, 'checkAccess' => caGetUserAccessValues($this->request)]); } } if ($content) {