From de7433a3bbb378e090fe7f8f370a07ad57621d02 Mon Sep 17 00:00:00 2001 From: Ben Smith Date: Sat, 4 Sep 2010 07:45:00 +1200 Subject: [PATCH] fixed a problem with delete products and postage bands --- modules/basket/controllers/admin_postage_bands.php | 4 ---- modules/basket/controllers/admin_product_lines.php | 4 ---- 2 files changed, 8 deletions(-) diff --git a/modules/basket/controllers/admin_postage_bands.php b/modules/basket/controllers/admin_postage_bands.php index 535ad4ed..914d7537 100644 --- a/modules/basket/controllers/admin_postage_bands.php +++ b/modules/basket/controllers/admin_postage_bands.php @@ -76,10 +76,6 @@ class Admin_Postage_Bands_Controller extends Controller public function delete_postage_band($id) { access::verify_csrf(); - if ($id == user::active()->id || $id == user::guest()->id) { - access::forbidden(); - } - $postage = ORM::factory("postage_band", $id); if (!$postage->loaded()) { kohana::show_404(); diff --git a/modules/basket/controllers/admin_product_lines.php b/modules/basket/controllers/admin_product_lines.php index 6fd7054a..752f4e63 100644 --- a/modules/basket/controllers/admin_product_lines.php +++ b/modules/basket/controllers/admin_product_lines.php @@ -77,10 +77,6 @@ class Admin_Product_Lines_Controller extends Controller public function delete_product($id) { access::verify_csrf(); - if ($id == user::active()->id || $id == user::guest()->id) { - access::forbidden(); - } - $product = ORM::factory("product", $id); if (!$product->loaded()) { kohana::show_404();