parseScope with owner/repo always sets owner to zero (#25987)

Refs: https://codeberg.org/forgejo/forgejo/pulls/1001
pull/25986/head^2
Earl Warren 2 years ago committed by GitHub
parent 0f9f6567bb
commit ad4c09b59f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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…
Cancel
Save