fixed a problem with delete products and postage bands
This commit is contained in:
parent
964d67f878
commit
de7433a3bb
@ -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();
|
||||
|
@ -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();
|
||||
|
Reference in New Issue
Block a user