This commit is contained in:
2025-10-20 09:59:39 +08:00
parent e73091cdf3
commit a4858d47fc
2834 changed files with 6510 additions and 438740 deletions

View File

@@ -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', []));
// }
}
}