Browse Source

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

111
wugg 2 years ago
parent
commit
955e6339a0
2 changed files with 2 additions and 2 deletions
  1. 1 1
      app/admin/controller/Good.php
  2. 1 1
      app/admin/controller/Goodup.php

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

@@ -106,7 +106,7 @@ class Good extends Base
             $where[]=['a.brand_id',"=",$brand_id];
         }
         $role=$this->checkRole();
-        if(!empty($role['write']) &&$role['roleid']==8 ){
+        if(!empty($role['write']) ){
             $where[]=["a.createrid","in",$role['write']];
         }
         $count = Db::name('good')->alias("a")->leftJoin("good_platform b","a.spuCode=b.spuCode")->where($where)

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

@@ -132,7 +132,7 @@ class Goodup extends Base
 //            }
 //        }
         $role=$this->checkRole();
-        if(!empty($role['write']) &&$role['roleid']==8){
+        if(!empty($role['write'])){
             $where[]=["createrid","in",$role['write']];
         }
         $count = Db::name('good_basic')->where($where)->count();