mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-11-20 08:51:01 +00:00
Fix nil pointer in repo repair (#1804)
Address **Bug 2** from the following issue https://github.com/woodpecker-ci/woodpecker/issues/1712
This commit is contained in:
parent
71d7a467f9
commit
9813411c69
1 changed files with 1 additions and 0 deletions
|
@ -37,6 +37,7 @@ func Repo(c *gin.Context) *model.Repo {
|
|||
if !ok {
|
||||
return nil
|
||||
}
|
||||
r.Perm = Perm(c)
|
||||
return r
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue