We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[x]
/home/jonas/go/src/code.gitea.io/gitea/routers/api/v1/user/repo.go:12 (0x101b389) listUserRepos: showPrivateRepos := (ctx.User.ID == userID || ctx.User.IsAdmin) && ctx.IsSigned /home/jonas/go/src/code.gitea.io/gitea/routers/api/v1/user/repo.go:40 (0x101b764) ListUserRepos: listUserRepos(ctx, user)
Trying to get users repositories using the API when not signed in will cause panic on line https://github.com/go-gitea/gitea/blob/master/routers/api/v1/user/repo.go#L12. ctx.User is not populated unless signed in.
Github seems to allow this operation even when nog logged in so I guess that should be correct behaviour?
The text was updated successfully, but these errors were encountered:
Related to #1539 which has the same issue (but for the web-view controller)
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
[x]
):Description
Trying to get users repositories using the API when not signed in will cause panic on line https://github.com/go-gitea/gitea/blob/master/routers/api/v1/user/repo.go#L12.
ctx.User is not populated unless signed in.
Github seems to allow this operation even when nog logged in so I guess that should be correct behaviour?
The text was updated successfully, but these errors were encountered: