mirror of
https://github.com/internetee/registry.git
synced 2025-06-11 15:14:47 +02:00
parent
cd037f7fae
commit
0c5284e8f9
1 changed files with 2 additions and 6 deletions
|
@ -110,12 +110,8 @@ class EppController < ApplicationController
|
||||||
end
|
end
|
||||||
|
|
||||||
def current_user
|
def current_user
|
||||||
@current_user ||= epp_session.user
|
return unless signed_in?
|
||||||
# by default PaperTrail uses before filter and at that
|
epp_session.user
|
||||||
# time current_user is not yet present
|
|
||||||
::PaperTrail.whodunnit = user_log_str(@current_user)
|
|
||||||
::PaperSession.session = epp_session.session_id
|
|
||||||
@current_user
|
|
||||||
end
|
end
|
||||||
|
|
||||||
# ERROR + RESPONSE HANDLING
|
# ERROR + RESPONSE HANDLING
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue