mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-26 01:40:36 +00:00
Fix unloaded owner (#1770)
This commit is contained in:
parent
cf02cd7ba0
commit
b0308d86dc
1 changed files with 3 additions and 2 deletions
|
@ -353,8 +353,9 @@ func (repo *Repository) getUnitsByUserID(e Engine, userID int64, isAdmin bool) (
|
|||
return nil
|
||||
}
|
||||
|
||||
err = repo.getUnits(e)
|
||||
if err != nil {
|
||||
if err = repo.getUnits(e); err != nil {
|
||||
return err
|
||||
} else if err = repo.getOwner(e); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue