mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-02 19:30:48 +08:00
操作记录记录用户信息
This commit is contained in:
@@ -76,10 +76,12 @@ class UserAction < ApplicationRecord
|
||||
|
||||
private
|
||||
def add_user_info
|
||||
if user.present?
|
||||
self.login = user.login
|
||||
self.email = user.mail
|
||||
self.phone = user.phone
|
||||
if self.login.blank?
|
||||
if user.present?
|
||||
self.login = user.login
|
||||
self.email = user.mail
|
||||
self.phone = user.phone
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user