mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-02 19:30:48 +08:00
fixed 解决安全问题访问附件,id改为uuid,issue关联附件
This commit is contained in:
@@ -9,7 +9,7 @@ module Api::V1::Issues::Concerns::Loadable
|
||||
end
|
||||
|
||||
def load_attachments(attachment_ids)
|
||||
@attachments = Attachment.where(id: attachment_ids)
|
||||
@attachments = Attachment.where(id: attachment_ids).or(Attachment.where(uuid: attachment_ids))
|
||||
end
|
||||
|
||||
def load_atme_receivers(receivers_login)
|
||||
|
||||
Reference in New Issue
Block a user