From 0586bf053cb0d363bdfcc59f1ba0cfe4412414b0 Mon Sep 17 00:00:00 2001 From: Gerhard Jungwirth Date: Thu, 30 Mar 2017 16:36:15 +0200 Subject: [PATCH] TT#12751 fix readonly condition in template Change-Id: I7f360b342e4d580f0798a1dcf99e0f1bbf8cb994 --- share/templates/subscriber/master.tt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/share/templates/subscriber/master.tt b/share/templates/subscriber/master.tt index 57b9e3791a..bc6683fa8d 100644 --- a/share/templates/subscriber/master.tt +++ b/share/templates/subscriber/master.tt @@ -207,7 +207,7 @@ function process_pbx_items(moveId,direction){ helper.ajax_uri = c.uri_for_action('/subscriber/ajax_voicemails', [c.req.captures.0]); - UNLESS (c.user.roles == "admin" || c.user.roles == "reseller") && c.user.read_only; + IF (c.user.roles == "admin" || c.user.roles == "reseller") && c.user.read_only; helper.dt_buttons = [ { name = c.loc('Play'), uri = "details/voicemail/'+full.id+'/play", class = 'btn-small btn-tertiary', icon = 'icon-play' }, ];