diff --git a/app/lib/mailjet/api.rb b/app/lib/mailjet/api.rb index e97845cdf..92e135160 100644 --- a/app/lib/mailjet/api.rb +++ b/app/lib/mailjet/api.rb @@ -1,6 +1,6 @@ class Mailjet::API def properly_configured? - [Mailjet.config.api_key, Mailjet.config.secret_key].all?(&:present?) + Mailjet.respond_to?(:config) && [Mailjet.config.api_key, Mailjet.config.secret_key].all?(&:present?) end # Get messages sent to a user through SendInBlue. diff --git a/app/views/manager/users/emails.html.erb b/app/views/manager/users/emails.html.erb index 1b9991d72..e7c6dd853 100644 --- a/app/views/manager/users/emails.html.erb +++ b/app/views/manager/users/emails.html.erb @@ -77,6 +77,8 @@
<% end %> +<%= link_to "Voir aussi les événements d'email", manager_email_events_path("search" => EmailEvent.pseudonymize_email(@user.email)) %> +