* [bug#55220] Not check product priv when in tutorial.

This commit is contained in:
xieqiyu
2024-09-11 15:25:20 +08:00
committed by 胡方舟
parent ca3febe875
commit 0dd29f4d02
+1
View File
@@ -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));
}