mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-24 05:35:46 +08:00
fixed 解决安全问题访问附件,id改为uuid,id查询修改
This commit is contained in:
@@ -24,7 +24,7 @@ class IdentityVerification < ApplicationRecord
|
||||
belongs_to :user
|
||||
enum state: { "待审核": 0, "已通过": 1, "已拒绝": 2}
|
||||
after_create do
|
||||
Attachment.where(id:[card_front,card_back,hold_card_front,hold_card_back]).update_all(is_public:0)
|
||||
Attachment.where(uuid:[card_front,card_back,hold_card_front,hold_card_back]).update_all(is_public:0)
|
||||
end
|
||||
|
||||
after_save do
|
||||
|
||||
Reference in New Issue
Block a user