mirror of
https://0xacab.org/sutty/sutty
synced 2025-02-22 14:01:51 +00:00
fix: informar le usuarie
This commit is contained in:
parent
414133ce5b
commit
7cc0573926
1 changed files with 2 additions and 2 deletions
|
@ -22,7 +22,7 @@ module ExceptionHandler
|
||||||
|
|
||||||
flash[:error] = I18n.t('errors.site_not_found')
|
flash[:error] = I18n.t('errors.site_not_found')
|
||||||
|
|
||||||
ExceptionNotifier.notify_exception(exception, data: { path: request.fullpath })
|
ExceptionNotifier.notify_exception(exception, data: { usuarie: current_usuarie&.id, path: request.fullpath })
|
||||||
|
|
||||||
redirect_to sites_path
|
redirect_to sites_path
|
||||||
end
|
end
|
||||||
|
@ -32,7 +32,7 @@ module ExceptionHandler
|
||||||
|
|
||||||
flash[:error] = I18n.t('errors.page_unauthorized')
|
flash[:error] = I18n.t('errors.page_unauthorized')
|
||||||
|
|
||||||
ExceptionNotifier.notify_exception(exception, data: { usuarie: current_usuarie.id, path: request.fullpath })
|
ExceptionNotifier.notify_exception(exception, data: { usuarie: current_usuarie&.id, path: request.fullpath })
|
||||||
|
|
||||||
redirect_to site_path(site)
|
redirect_to site_path(site)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue