From 51c5bc65551c4fe8f96faee3795a0013b36de7ee Mon Sep 17 00:00:00 2001 From: gotoeasy Date: Thu, 21 Mar 2024 21:04:43 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=AD=A3=E4=B8=BA=E6=9D=83=E9=99=90?= =?UTF-8?q?=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- glc/www/controller/log_search_controller.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/glc/www/controller/log_search_controller.go b/glc/www/controller/log_search_controller.go index eb7d2b8..13b59b4 100644 --- a/glc/www/controller/log_search_controller.go +++ b/glc/www/controller/log_search_controller.go @@ -77,7 +77,7 @@ func LogSearchController(req *gweb.HttpRequest) *gweb.HttpResult { // 一般用户,按设定权限 user := mnt.GetSysUser(username) if user == nil { - return gweb.Error500("") // 不应该出现,保险起见防意外 + return gweb.Error403() // 可能出现,用户登录使用期间被管理员删除账号 } if user.Systems == "*" { cond.OrgSystems = append(cond.OrgSystems, "*") // 全部系统都有访问权限