mirror of
https://github.com/gotoeasy/glogcenter.git
synced 2025-09-15 12:58:34 +08:00
更正为权限错误
This commit is contained in:
parent
de0282ccfd
commit
51c5bc6555
@ -77,7 +77,7 @@ func LogSearchController(req *gweb.HttpRequest) *gweb.HttpResult {
|
|||||||
// 一般用户,按设定权限
|
// 一般用户,按设定权限
|
||||||
user := mnt.GetSysUser(username)
|
user := mnt.GetSysUser(username)
|
||||||
if user == nil {
|
if user == nil {
|
||||||
return gweb.Error500("") // 不应该出现,保险起见防意外
|
return gweb.Error403() // 可能出现,用户登录使用期间被管理员删除账号
|
||||||
}
|
}
|
||||||
if user.Systems == "*" {
|
if user.Systems == "*" {
|
||||||
cond.OrgSystems = append(cond.OrgSystems, "*") // 全部系统都有访问权限
|
cond.OrgSystems = append(cond.OrgSystems, "*") // 全部系统都有访问权限
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user