mirror of
https://github.com/internetee/registry.git
synced 2025-06-08 05:34:46 +02:00
Supply PaperTrail with current user
This commit is contained in:
parent
7a054ca893
commit
f6ad22156e
4 changed files with 10 additions and 2 deletions
|
@ -14,7 +14,7 @@ module Admin
|
|||
end
|
||||
|
||||
def user_for_paper_trail
|
||||
current_admin_user.present? ? current_admin_user.id_role_username : 'public'
|
||||
current_admin_user ? current_admin_user.id_role_username : 'guest'
|
||||
end
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue