bugfix: fix nil target
This commit is contained in:
parent
537d5d2386
commit
2e64c83632
|
@ -462,6 +462,10 @@ func (u *User) BusiGroups(limit int, query string, all ...bool) ([]BusiGroup, er
|
|||
return lst, err
|
||||
}
|
||||
|
||||
if t == nil {
|
||||
return lst, nil
|
||||
}
|
||||
|
||||
err = DB().Order("name").Limit(limit).Where("id=?", t.GroupId).Find(&lst).Error
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue