1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-11-21 08:31:27 -05:00

[GITEA] parseScope with owner/repo always sets owner to zero

This commit is contained in:
Earl Warren 2023-07-10 07:07:17 +02:00
parent fce9dd9398
commit 5ad65cdd19
No known key found for this signature in database
GPG key ID: 0579CB2928A78A00

View file

@ -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)