mirror of https://github.com/qwqdanchun/nps.git
Merge pull request #807 from geek981108/fix
fix: 🐛 fix wrong api response
This commit is contained in:
commit
968d03d58b
|
@ -102,6 +102,8 @@ func (s *ClientController) Edit() {
|
|||
} else {
|
||||
if c, err := file.GetDb().GetClient(id); err != nil {
|
||||
s.error()
|
||||
s.AjaxErr("client ID not found")
|
||||
return
|
||||
} else {
|
||||
if s.getEscapeString("web_username") != "" {
|
||||
if s.getEscapeString("web_username") == beego.AppConfig.String("web_username") || !file.GetDb().VerifyUserName(s.getEscapeString("web_username"), c.Id) {
|
||||
|
|
Loading…
Reference in New Issue