Procházet zdrojové kódy

总店添加花材

shish před 3 roky
rodič
revize
4c1cb77513
1 změnil soubory, kde provedl 0 přidání a 5 odebrání
  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('管理员才能添加花材');