mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-03 03:40:49 +08:00
操作记录后台查询菜单
This commit is contained in:
@@ -48,10 +48,11 @@ class UserAction < ApplicationRecord
|
||||
end
|
||||
|
||||
def user
|
||||
action_user = User.find_by(id: self.user_id)
|
||||
if action_user.blank?
|
||||
action_user = self.action_data
|
||||
end
|
||||
action_user = if action_type == "DestroyUser" && data_bank.present?
|
||||
build_mode("User")
|
||||
else
|
||||
User.find_by(id: self.user_id)
|
||||
end
|
||||
action_user
|
||||
end
|
||||
def build_mode(model_name)
|
||||
|
||||
Reference in New Issue
Block a user