From d29643cf5719d704ba40b5d1785e2a5ba611013e Mon Sep 17 00:00:00 2001 From: hufangzhou Date: Tue, 21 Mar 2023 13:25:02 +0800 Subject: [PATCH] * Revert the code. --- module/product/model.php | 1 - 1 file changed, 1 deletion(-) diff --git a/module/product/model.php b/module/product/model.php index 2cd6930b5e..b4e10cd486 100755 --- a/module/product/model.php +++ b/module/product/model.php @@ -2590,7 +2590,6 @@ class productModel extends model if(!$this->app->user->admin and strpos(",{$this->app->user->view->products},", ",$productID,") === false and $productID != 0 and !defined('TUTORIAL')) return $this->accessDenied($this->lang->product->accessDenied); $product = $this->getByID($productID); - if(!empty($product) and $product->shadow) $this->accessDenied($this->lang->product->notExists); $params = array('branch' => $branch); common::setMenuVars('product', $productID, $params);