优化权限处理

master
chenzhi 5 years ago
parent c0df7f23c3
commit 14ffc00f86

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

Loading…
Cancel
Save