Browse Source

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

Refs: https://codeberg.org/forgejo/forgejo/pulls/1001
tags/v1.21.0-rc0
Earl Warren 11 months ago
parent
commit
ad4c09b59f
No account linked to committer's email address
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      routers/private/actions.go

+ 2
- 1
routers/private/actions.go 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)

Loading…
Cancel
Save