Przeglądaj źródła

报损花材要超管

shish 5 lat temu
rodzic
commit
007b21bd2c
1 zmienionych plików z 6 dodań i 0 usunięć
  1. 6 0
      app-ghs/controllers/WastageController.php

+ 6 - 0
app-ghs/controllers/WastageController.php

@@ -13,6 +13,12 @@ class WastageController extends BaseController
     //新增损耗
     public function actionCreateOrder()
     {
+
+        $shopAdmin = $this->shopAdmin;
+        if (isset($shopAdmin->super) == false || $shopAdmin->super != 1) {
+            util::fail('超管才能结帐');
+        }
+
         $post = Yii::$app->request->post();
         $post['shopId'] = $this->shopId;
         $post['sjId'] = $this->sjId;