diff options
author | Andy Staudacher <andy.st@gmail.com> | 2010-02-09 13:54:14 -0800 |
---|---|---|
committer | Andy Staudacher <andy.st@gmail.com> | 2010-02-09 13:54:14 -0800 |
commit | c0a598417cc1f9a5534348ec5edb9c138293bc01 (patch) | |
tree | 0ba494264e55b1c8e474d9b975d4579380719ba5 /modules/g2_import/controllers | |
parent | 157872434dc659cecf9e26acbe8006b2f0bc4e5f (diff) |
Change access::can to access::required in g2 redirect, to please the controller auth code audit test.
Diffstat (limited to 'modules/g2_import/controllers')
-rw-r--r-- | modules/g2_import/controllers/g2.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/g2_import/controllers/g2.php b/modules/g2_import/controllers/g2.php index 347da649..1d97653a 100644 --- a/modules/g2_import/controllers/g2.php +++ b/modules/g2_import/controllers/g2.php @@ -61,9 +61,10 @@ class G2_Controller extends Controller { } $item = ORM::factory("item", $g2_map->g3_id); - if (!$item->loaded() || !access::can("view", $item)) { + if (!$item->loaded()) { throw new Kohana_404_Exception(); } + access::required("view", $item); // Redirect the user to the new url |