Merge branch 'hotfix/auth' of wmtx/platform into master

新增商户权限
master
廖金灵 4 years ago committed by Gogs
commit d10d25ee5e

@ -48,7 +48,7 @@ class AdminController extends Controller {
if ( false === $access ) { if ( false === $access ) {
$this->error('403:禁止访问'); $this->error('403:禁止访问');
}elseif(null === $access ){ }elseif(null === $access ){
$access_controller = ['Ajax', 'Finance', 'FinancePromote', 'PayChannel','FinanceCompare',"AggregateFinanceStatement"]; $access_controller = ['Ajax', 'Finance', 'FinancePromote', 'PayChannel','FinanceCompare',"AggregateFinanceStatement","PaymentMerchant"];
if(!in_array(CONTROLLER_NAME, $access_controller)){//ajax放行 if(!in_array(CONTROLLER_NAME, $access_controller)){//ajax放行
//检测访问权限 //检测访问权限
$rule = strtolower(MODULE_NAME.'/'.CONTROLLER_NAME.'/'.ACTION_NAME); $rule = strtolower(MODULE_NAME.'/'.CONTROLLER_NAME.'/'.ACTION_NAME);

Loading…
Cancel
Save