1
0

fixed a problem with delete products and postage bands

This commit is contained in:
Ben Smith 2010-09-04 07:45:00 +12:00
parent 964d67f878
commit de7433a3bb
2 changed files with 0 additions and 8 deletions

View File

@ -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();

View File

@ -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();