mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-01-03 14:18:42 +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 {
|
if !ok {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
r.Perm = Perm(c)
|
||||||
return r
|
return r
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue