Procházet zdrojové kódy

Merge branch 'wugg-dev' of wugg/phpstock into version1.5

wugg před 2 roky
rodič
revize
4730a306b7
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      app/admin/controller/Good.php

+ 1 - 1
app/admin/controller/Good.php

@@ -231,7 +231,7 @@ class Good extends Base
         if ($param['exam_status'] !== '') $where[] = ['b.exam_status', "=", $param['exam_status']];
         if ($param['brand_id'] !== "") $where[] = ['a.brand_id', "=", $param['brand_id']];
         $role = $this->checkRole();
-        if (!empty($role['write'])) $where[] = ["a.createrid", "in", $role['write']];
+        if (!empty($role['write'])) $where[] = ["b.createrid", "in", $role['write']];
         if ($param['company_name'] !== '') $where[] = ["a.createrid", 'in', get_company_item_user_by_name($param['company_name'])];
 
         $count = Db::name('platform_youzan')