summaryrefslogtreecommitdiff
path: root/modules/g2_import/controllers
diff options
context:
space:
mode:
Diffstat (limited to 'modules/g2_import/controllers')
-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