From a5963cf880efe29b951fdd917df6a3cd98ac0f17 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Sat, 20 Apr 2013 16:42:38 +0200 Subject: [PATCH] Only fetch data if authentication exists. --- .../javascripts/app/controllers/agent_ticket_zoom.js.coffee | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/assets/javascripts/app/controllers/agent_ticket_zoom.js.coffee b/app/assets/javascripts/app/controllers/agent_ticket_zoom.js.coffee index 837c1f019..acbc00f63 100644 --- a/app/assets/javascripts/app/controllers/agent_ticket_zoom.js.coffee +++ b/app/assets/javascripts/app/controllers/agent_ticket_zoom.js.coffee @@ -47,6 +47,8 @@ class App.TicketZoom extends App.Controller fetch: (ticket_id, force) -> + return if !@Session.all() + # get data App.Com.ajax( id: 'ticket_zoom'