Supply PaperTrail with current user

This commit is contained in:
Artur Beljajev 2018-07-13 23:13:58 +03:00
parent 7a054ca893
commit f6ad22156e
4 changed files with 10 additions and 2 deletions

View file

@ -36,7 +36,7 @@ class Registrar
end
def user_for_paper_trail
current_registrar_user.present? ? current_registrar_user.id_role_username : 'public'
current_registrar_user ? current_registrar_user.id_role_username : 'guest'
end
end
end