summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndy Staudacher <andy.st@gmail.com>2010-02-09 13:54:14 -0800
committerAndy Staudacher <andy.st@gmail.com>2010-02-09 13:54:14 -0800
commitc0a598417cc1f9a5534348ec5edb9c138293bc01 (patch)
tree0ba494264e55b1c8e474d9b975d4579380719ba5
parent157872434dc659cecf9e26acbe8006b2f0bc4e5f (diff)
Change access::can to access::required in g2 redirect, to please the controller auth code audit test.
-rw-r--r--modules/g2_import/controllers/g2.php3
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