File tree 2 files changed +2
-6
lines changed
2 files changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -185,10 +185,8 @@ func RepoAssignment(args ...bool) macaron.Handler {
185
185
ctx .Handle (500 , "GetRepositoryByName" , err )
186
186
}
187
187
return
188
- } else if err = repo .GetOwner (); err != nil {
189
- ctx .Handle (500 , "GetOwner" , err )
190
- return
191
188
}
189
+ repo .Owner = owner
192
190
193
191
// Admin has super access.
194
192
if ctx .IsSigned && ctx .User .IsAdmin {
Original file line number Diff line number Diff line change @@ -57,10 +57,8 @@ func repoAssignment() macaron.Handler {
57
57
ctx .Error (500 , "GetRepositoryByName" , err )
58
58
}
59
59
return
60
- } else if err = repo .GetOwner (); err != nil {
61
- ctx .Error (500 , "GetOwner" , err )
62
- return
63
60
}
61
+ repo .Owner = owner
64
62
65
63
if ctx .IsSigned && ctx .User .IsAdmin {
66
64
ctx .Repo .AccessMode = models .AccessModeOwner
You can’t perform that action at this time.
0 commit comments