mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-03 11:50:49 +08:00
操作记录记录显示调整,不存在用户仅显示id
This commit is contained in:
@@ -44,7 +44,8 @@ class UserAction < ApplicationRecord
|
||||
if user.present?
|
||||
user&.login
|
||||
else
|
||||
"不存用户:#{action_id}"
|
||||
del_user = UserAction.find_by(action_type: "DestroyUser", action_id: self.user_id)
|
||||
del_user.present? ? "已注销:#{del_user.user.login}" : "不存在用户:#{user_id}"
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user