|
|
@@ -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('管理员才能添加花材');
|