This website works better with JavaScript.
Home
Explore
Help
Sign In
closed-social
/
gitea
Watch
3
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Projects
0
Releases
0
Wiki
Activity
Browse Source
Fix unloaded owner (
#1770
)
for-closed-social
Ethan Koenig
7 years ago
committed by
Lunny Xiao
parent
cf02cd7ba0
commit
b0308d86dc
1 changed files
with
3 additions
and
2 deletions
Unified View
Diff Options
Show Stats
Download Patch File
Download Diff File
+3
-2
models/repo.go
+ 3
- 2
models/repo.go
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
!=
nil
{
if
err
=
repo
.
getUnits
(
e
)
;
err
!=
nil
{
return
err
}
else
if
err
=
repo
.
getOwner
(
e
)
;
err
!=
nil
{
return
err
return
err
}
}
Write
Preview
Loading…
Cancel
Save