[GITEA] parseScope with owner/repo always sets owner to zero
(cherry picked from commit 5ad65cdd19
)
This commit is contained in:
parent
93dcbda11c
commit
1cc0aeb1eb
1 changed files with 2 additions and 1 deletions
|
@ -77,9 +77,10 @@ func parseScope(ctx *context.PrivateContext, scope string) (ownerID, repoID int6
|
|||
if err != nil {
|
||||
return ownerID, repoID, err
|
||||
}
|
||||
ownerID = u.ID
|
||||
|
||||
if !found {
|
||||
return u.ID, repoID, nil
|
||||
return ownerID, repoID, nil
|
||||
}
|
||||
|
||||
r, err := repo_model.GetRepositoryByName(u.ID, repoName)
|
||||
|
|
Loading…
Reference in a new issue