mirror of
https://github.com/go-gitea/gitea.git
synced 2025-08-09 19:52:40 +00:00
revert unrelated change
This commit is contained in:
parent
4ff5c97e2e
commit
9671f2e7a7
@ -266,11 +266,6 @@ func UpdateIssueAttachments(ctx context.Context, issueID int64, uuids []string)
|
||||
return fmt.Errorf("getAttachmentsByUUIDs [uuids: %v]: %w", uuids, err)
|
||||
}
|
||||
for i := range attachments {
|
||||
if attachments[i].IssueID == issueID {
|
||||
continue
|
||||
} else if attachments[i].IssueID != 0 {
|
||||
return util.NewPermissionDeniedErrorf("update issue attachments permission denied")
|
||||
}
|
||||
attachments[i].IssueID = issueID
|
||||
if err := repo_model.UpdateAttachment(ctx, attachments[i]); err != nil {
|
||||
return fmt.Errorf("update attachment [id: %d]: %w", attachments[i].ID, err)
|
||||
|
Loading…
Reference in New Issue
Block a user