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:
Xavier Maillard 2023-06-02 12:25:09 +02:00 committed by GitHub
parent 71d7a467f9
commit 9813411c69
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -37,6 +37,7 @@ func Repo(c *gin.Context) *model.Repo {
if !ok {
return nil
}
r.Perm = Perm(c)
return r
}