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 43b0551 commit fe27e0bCopy full SHA for fe27e0b
routers/api/v1/repo/issue.go
@@ -345,7 +345,7 @@ func EditIssue(ctx *context.APIContext, form api.EditIssueOption) {
345
// Pass one or more user logins to replace the set of assignees on this Issue.
346
// Send an empty array ([]) to clear all assignees from the Issue.
347
348
- if ctx.Repo.CanWriteIssuesOrPulls(issue.IsPull) && (form.Assignees != nil || form.Assignee != nil) {
+ if canWrite && (form.Assignees != nil || form.Assignee != nil) {
349
oneAssignee := ""
350
if form.Assignee != nil {
351
oneAssignee = *form.Assignee
0 commit comments