From 0dd29f4d02fe8911f2fc1ea4b314e8062326edea Mon Sep 17 00:00:00 2001 From: xieqiyu Date: Wed, 11 Sep 2024 15:23:21 +0800 Subject: [PATCH] * [bug#55220] Not check product priv when in tutorial. --- module/product/model.php | 1 + 1 file changed, 1 insertion(+) diff --git a/module/product/model.php b/module/product/model.php index c13733fe8b..cfa2bcd942 100755 --- a/module/product/model.php +++ b/module/product/model.php @@ -21,6 +21,7 @@ class productModel extends model */ public function checkPriv(int $productID): bool { + if(common::isTutorialMode()) return true; return !empty($productID) && ($this->app->user->admin || (strpos(",{$this->app->user->view->products},", ",{$productID},") !== false)); }