汇总权限测试

master
zhengyongxing 4 years ago
parent f4f822d31a
commit 6b486331b5

@ -728,7 +728,7 @@ class AggregateRelationController extends AdminController
if(IS_ROOT){ if(IS_ROOT){
$resarr[] = $opBtn[$v]; $resarr[] = $opBtn[$v];
}else{ }else{
if(in_array($v,$this->OpAuthList)){ if(in_array('Admin/aggregateRelation/'.$v,$this->OpAuthList)){
$resarr[] = $opBtn[$v]; $resarr[] = $opBtn[$v];
} }
} }
@ -750,7 +750,7 @@ class AggregateRelationController extends AdminController
if(IS_ROOT){ if(IS_ROOT){
$resarr[] = $v; $resarr[] = $v;
}else{ }else{
if(in_array($k,$this->OpAuthList)){ if(in_array('Admin/aggregateRelation/'.$k,$this->OpAuthList)){
$resarr[] = $v; $resarr[] = $v;
} }
} }

@ -33,6 +33,7 @@ class AggregateStatementLackController extends ThinkController
if(!IS_ROOT){ if(!IS_ROOT){
$this->OpAuthList= getModuleControllerAuth(); $this->OpAuthList= getModuleControllerAuth();
} }
// dump($this->OpAuthList);die();
$this->assign('menubtn',$this->menuAuth()); $this->assign('menubtn',$this->menuAuth());
$map = [ $map = [
@ -350,7 +351,7 @@ class AggregateStatementLackController extends ThinkController
if(IS_ROOT){ if(IS_ROOT){
$resarr[] = $opBtn[$v]; $resarr[] = $opBtn[$v];
}else{ }else{
if(in_array($v,$this->OpAuthList)){ if(in_array("Admin/aggregateStatementLack/".$v,$this->OpAuthList)){
$resarr[] = $opBtn[$v]; $resarr[] = $opBtn[$v];
} }
} }
@ -368,7 +369,7 @@ class AggregateStatementLackController extends ThinkController
if(IS_ROOT){ if(IS_ROOT){
$resarr[] = $v; $resarr[] = $v;
}else{ }else{
if(in_array($k,$this->OpAuthList)){ if(in_array("Admin/aggregateStatementLack/".$k,$this->OpAuthList)){
$resarr[] = $v; $resarr[] = $v;
} }
} }

@ -921,6 +921,7 @@ class AggregateStatementPoolController extends ThinkController
default: default:
break; break;
} }
$optist = ["viewPool","cancelPool"]; $optist = ["viewPool","cancelPool"];
// //
if($info['platform_amount'] <= 0 && $info['company_type'] != 2){ if($info['platform_amount'] <= 0 && $info['company_type'] != 2){
@ -942,7 +943,7 @@ class AggregateStatementPoolController extends ThinkController
}else{ }else{
$optist = array_diff($optist, ["cancelPool","reCount"]); $optist = array_diff($optist, ["cancelPool","reCount"]);
} }
if(empty($info['ext_file'])){ if(empty($info['ext_file'])){
//未上传凭证 //未上传凭证
$optist = array_diff($optist, ["viewVoucher", "editVoucher"]); $optist = array_diff($optist, ["viewVoucher", "editVoucher"]);
@ -969,7 +970,7 @@ class AggregateStatementPoolController extends ThinkController
if(IS_ROOT){ if(IS_ROOT){
$resarr[] = $opBtn[$v]; $resarr[] = $opBtn[$v];
}else{ }else{
if(in_array($v,$this->OpAuthList)){ if(in_array("Admin/aggregateStatementPool/".$v,$this->OpAuthList)){
$resarr[] = $opBtn[$v]; $resarr[] = $opBtn[$v];
} }
} }
@ -988,7 +989,7 @@ class AggregateStatementPoolController extends ThinkController
if(IS_ROOT){ if(IS_ROOT){
$resarr[] = $v; $resarr[] = $v;
}else{ }else{
if(in_array($k,$this->OpAuthList)){ if(in_array("Admin/aggregateStatementPool/".$k,$this->OpAuthList)){
$resarr[] = $v; $resarr[] = $v;
} }
} }

Loading…
Cancel
Save