mirror of
https://github.com/internetee/registry.git
synced 2025-05-18 18:29:40 +02:00
Added current_user for papertrail
This commit is contained in:
parent
aebe137978
commit
1591d6a7b4
5 changed files with 29 additions and 22 deletions
|
@ -25,6 +25,11 @@ class EppController < ApplicationController
|
|||
@current_api_user ||= ApiUser.find(epp_session[:api_user_id]) if epp_session[:api_user_id]
|
||||
end
|
||||
|
||||
# temp until Martin is ready
|
||||
def current_api_user
|
||||
@current_epp_user ||= EppUser.find(epp_session[:epp_user_id]) if epp_session[:epp_user_id]
|
||||
end
|
||||
|
||||
# ERROR + RESPONSE HANDLING
|
||||
def epp_errors
|
||||
@errors ||= []
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue