shish 3 лет назад
Родитель
Сommit
4c1cb77513
1 измененных файлов с 0 добавлено и 5 удалено
  1. 0 5
      app-ghs/controllers/ProductController.php

+ 0 - 5
app-ghs/controllers/ProductController.php

@@ -922,11 +922,6 @@ class ProductController extends BaseController
     public function actionAdd()
     {
         $post = Yii::$app->request->post();
-        $shop = $this->shop;
-        $default = $shop->default ?? 0;
-        if ($default == 0) {
-            util::fail('请在总店添加花材,分店只能修改花材');
-        }
         $shopAdmin = $this->shopAdmin;
         if (isset($shopAdmin->super) == false || $shopAdmin->super != 1) {
             util::fail('管理员才能添加花材');