mirror of
https://codeberg.org/forgejo/forgejo
synced 2024-11-28 04:36:11 +01:00
[GITEA] parseScope with owner/repo always sets owner to zero
(cherry picked from commit5ad65cdd19
) (cherry picked from commit1cc0aeb1eb
)
This commit is contained in:
parent
bf025db340
commit
88634c2689
|
@ -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