Skip to content

Commit a8f6879

Browse files
committed
improve
1 parent 64122b1 commit a8f6879

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

routers/api/v1/repo/issue_label.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ func prepareForReplaceOrAdd(ctx *context.APIContext, form api.IssueLabelsOption)
351351
}
352352

353353
if !ctx.Repo.CanWriteIssuesOrPulls(issue.IsPull) {
354-
ctx.Error(http.StatusForbidden, "CanWriteIssuesOrPulls", "you should have write access to issue")
354+
ctx.Error(http.StatusForbidden, "CanWriteIssuesOrPulls", "write permission is required")
355355
return nil, nil, fmt.Errorf("permission denied")
356356
}
357357

0 commit comments

Comments
 (0)