diff --git a/Application/Admin/Controller/AggregateRelationController.class.php b/Application/Admin/Controller/AggregateRelationController.class.php index 8d0346fd7..c627e132a 100644 --- a/Application/Admin/Controller/AggregateRelationController.class.php +++ b/Application/Admin/Controller/AggregateRelationController.class.php @@ -728,7 +728,7 @@ class AggregateRelationController extends AdminController if(IS_ROOT){ $resarr[] = $opBtn[$v]; }else{ - if(in_array($v,$this->OpAuthList)){ + if(in_array('Admin/aggregateRelation/'.$v,$this->OpAuthList)){ $resarr[] = $opBtn[$v]; } } @@ -750,7 +750,7 @@ class AggregateRelationController extends AdminController if(IS_ROOT){ $resarr[] = $v; }else{ - if(in_array($k,$this->OpAuthList)){ + if(in_array('Admin/aggregateRelation/'.$k,$this->OpAuthList)){ $resarr[] = $v; } } diff --git a/Application/Admin/Controller/AggregateStatementLackController.class.php b/Application/Admin/Controller/AggregateStatementLackController.class.php index 2f8ac5645..554e2b790 100644 --- a/Application/Admin/Controller/AggregateStatementLackController.class.php +++ b/Application/Admin/Controller/AggregateStatementLackController.class.php @@ -33,6 +33,7 @@ class AggregateStatementLackController extends ThinkController if(!IS_ROOT){ $this->OpAuthList= getModuleControllerAuth(); } +// dump($this->OpAuthList);die(); $this->assign('menubtn',$this->menuAuth()); $map = [ @@ -350,7 +351,7 @@ class AggregateStatementLackController extends ThinkController if(IS_ROOT){ $resarr[] = $opBtn[$v]; }else{ - if(in_array($v,$this->OpAuthList)){ + if(in_array("Admin/aggregateStatementLack/".$v,$this->OpAuthList)){ $resarr[] = $opBtn[$v]; } } @@ -368,7 +369,7 @@ class AggregateStatementLackController extends ThinkController if(IS_ROOT){ $resarr[] = $v; }else{ - if(in_array($k,$this->OpAuthList)){ + if(in_array("Admin/aggregateStatementLack/".$k,$this->OpAuthList)){ $resarr[] = $v; } } diff --git a/Application/Admin/Controller/AggregateStatementPoolController.class.php b/Application/Admin/Controller/AggregateStatementPoolController.class.php index c8a7b9942..10ce92cf5 100644 --- a/Application/Admin/Controller/AggregateStatementPoolController.class.php +++ b/Application/Admin/Controller/AggregateStatementPoolController.class.php @@ -921,6 +921,7 @@ class AggregateStatementPoolController extends ThinkController default: break; } + $optist = ["viewPool","cancelPool"]; // if($info['platform_amount'] <= 0 && $info['company_type'] != 2){ @@ -942,7 +943,7 @@ class AggregateStatementPoolController extends ThinkController }else{ $optist = array_diff($optist, ["cancelPool","reCount"]); } - + if(empty($info['ext_file'])){ //未上传凭证 $optist = array_diff($optist, ["viewVoucher", "editVoucher"]); @@ -969,7 +970,7 @@ class AggregateStatementPoolController extends ThinkController if(IS_ROOT){ $resarr[] = $opBtn[$v]; }else{ - if(in_array($v,$this->OpAuthList)){ + if(in_array("Admin/aggregateStatementPool/".$v,$this->OpAuthList)){ $resarr[] = $opBtn[$v]; } } @@ -988,7 +989,7 @@ class AggregateStatementPoolController extends ThinkController if(IS_ROOT){ $resarr[] = $v; }else{ - if(in_array($k,$this->OpAuthList)){ + if(in_array("Admin/aggregateStatementPool/".$k,$this->OpAuthList)){ $resarr[] = $v; } }