We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8e38bd1 commit f825e2aCopy full SHA for f825e2a
routers/api/v1/repo/issue_reaction.go
@@ -56,7 +56,11 @@ func GetIssueCommentReactions(ctx *context.APIContext) {
56
return
57
}
58
59
- if !ctx.Repo.CanRead(models.UnitTypeIssues) {
+ if err := comment.LoadIssue(); err != nil {
60
+ ctx.Error(http.StatusInternalServerError, "comment.LoadIssue", err)
61
+ }
62
+
63
+ if !ctx.Repo.CanReadIssuesOrPulls(comment.Issue.IsPull) {
64
ctx.Error(http.StatusForbidden, "GetIssueCommentReactions", errors.New("no permission to get reactions"))
65
66
0 commit comments