1
0
Fork 0

Fix unloaded owner (#1770)

This commit is contained in:
Ethan Koenig 2017-05-21 02:35:45 -04:00 committed by Lunny Xiao
parent cf02cd7ba0
commit b0308d86dc

View file

@ -353,8 +353,9 @@ func (repo *Repository) getUnitsByUserID(e Engine, userID int64, isAdmin bool) (
return nil return nil
} }
err = repo.getUnits(e) if err = repo.getUnits(e); err != nil {
if err != nil { return err
} else if err = repo.getOwner(e); err != nil {
return err return err
} }