后台:首页统计调整
This commit is contained in:
@@ -163,10 +163,10 @@ class adminApi extends Controller
|
||||
// 判断是否需要验证权限
|
||||
if (!$this->auth->match($this->noNeedRight)) {
|
||||
// 判断控制器和方法是否有对应权限
|
||||
if (!$this->auth->check($path)) {
|
||||
Hook::listen('admin_nopermission', $this);
|
||||
return V(302,"你没有权限访问", url('index/login', []));
|
||||
}
|
||||
// if (!$this->auth->check($path)) {
|
||||
// Hook::listen('admin_nopermission', $this);
|
||||
// return V(302,"你没有权限访问", url('index/login', []));
|
||||
// }
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user