Skip to content

Commit 9671f2e

Browse files
committed
revert unrelated change
1 parent 4ff5c97 commit 9671f2e

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

models/issues/issue_update.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -266,11 +266,6 @@ func UpdateIssueAttachments(ctx context.Context, issueID int64, uuids []string)
266266
return fmt.Errorf("getAttachmentsByUUIDs [uuids: %v]: %w", uuids, err)
267267
}
268268
for i := range attachments {
269-
if attachments[i].IssueID == issueID {
270-
continue
271-
} else if attachments[i].IssueID != 0 {
272-
return util.NewPermissionDeniedErrorf("update issue attachments permission denied")
273-
}
274269
attachments[i].IssueID = issueID
275270
if err := repo_model.UpdateAttachment(ctx, attachments[i]); err != nil {
276271
return fmt.Errorf("update attachment [id: %d]: %w", attachments[i].ID, err)

0 commit comments

Comments
 (0)