diff --git a/app/controllers/webhook_controller.rb b/app/controllers/webhook_controller.rb
index a8ab7193a..1a9a1288e 100644
--- a/app/controllers/webhook_controller.rb
+++ b/app/controllers/webhook_controller.rb
@@ -26,6 +26,8 @@ class WebhookController < ActionController::Base
html << link_to_manager(administrateur, url)
end
+ html << email_link_to_manager(user)
+
render json: { html: html.join('
') }
end
end
@@ -36,6 +38,11 @@ class WebhookController < ActionController::Base
"#{model.model_name.human}##{model.id}"
end
+ def email_link_to_manager(user)
+ url = emails_manager_user_url(user)
+ "Emails##{user.id}"
+ end
+
def verify_signature!
if generate_body_signature(request.body.read) != request.headers['X-Helpscout-Signature']
request_http_token_authentication