shish 3 anos atrás
pai
commit
59a2ac7450
1 arquivos alterados com 7 adições e 0 exclusões
  1. 7 0
      app-hd/controllers/StatItemController.php

+ 7 - 0
app-hd/controllers/StatItemController.php

@@ -15,6 +15,13 @@ class StatItemController extends BaseController
     //花材销量 ssh 20211021
     public function actionProfile()
     {
+
+        //查看财务的权限
+        $lookMoney = \bizGhs\shop\classes\ShopAdminClass::lookMoneyPower($this->shopAdmin, $this->shop);
+        if ($lookMoney == 0) {
+            util::fail('没有权限查看');
+        }
+
         $get = Yii::$app->request->get();
         $where = [];
         $where['shopId'] = $this->shopId;