From c7dc7add0bbf6e7d196079a89942d199e5f3c847 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Fri, 12 Jun 2015 09:32:00 +0200 Subject: [PATCH] Only enable highlighter for agents. --- .../app/controllers/ticket_zoom/higlighter.js.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/app/controllers/ticket_zoom/higlighter.js.coffee b/app/assets/javascripts/app/controllers/ticket_zoom/higlighter.js.coffee index c433569eb..00b46843d 100644 --- a/app/assets/javascripts/app/controllers/ticket_zoom/higlighter.js.coffee +++ b/app/assets/javascripts/app/controllers/ticket_zoom/higlighter.js.coffee @@ -36,7 +36,7 @@ class App.TicketZoomHighlighter extends App.Controller constructor: -> super - #@articles = @el.closest('.content').find('.textBubble-content') + return if !@isRole('Agent') rangy.init()