wugg 2 years ago
parent
commit
8ea72017ec
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/admin/controller/Purchin.php

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

@@ -82,7 +82,7 @@ class Purchin extends Base
         }
         $role=$this->checkRole();
         $condition="";
-        if(!empty($role['write'])|| $this->uid!=''){
+        if(!empty($role['write'])&& $this->uid!=''){
 //            $condition.=["apply_id","in",$role['write']];
             $condition.="a.apply_id in (".implode(",",$role['write']).") or c.contactor = {$this->uid}";
         }