From ee84daf35958d644ea92d52962932ccc47c02c5f Mon Sep 17 00:00:00 2001 From: Glenn-1990 Date: Sat, 8 Oct 2016 22:12:59 +0200 Subject: [PATCH] Don't show debugging and mem info for basic users --- src/webui/static/app/tvheadend.js | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/src/webui/static/app/tvheadend.js b/src/webui/static/app/tvheadend.js index ba6406f54..d31d5b962 100644 --- a/src/webui/static/app/tvheadend.js +++ b/src/webui/static/app/tvheadend.js @@ -777,18 +777,20 @@ function accessUpdate(o) { tvheadend.caclient(cp, 6); /* Debug */ - var dbg = new Ext.TabPanel({ - tabIndex: 7, - activeTab: 0, - autoScroll: true, - title: _('Debugging'), - iconCls: 'debug', - items: [] - }); - tvheadend.tvhlog(dbg, 0); - tvheadend.memoryinfo(dbg, 1); + if (o.uilevel == 'expert') { + var dbg = new Ext.TabPanel({ + tabIndex: 7, + activeTab: 0, + autoScroll: true, + title: _('Debugging'), + iconCls: 'debug', + items: [] + }); + tvheadend.tvhlog(dbg, 0); + tvheadend.memoryinfo(dbg, 1); - cp.add(dbg); + cp.add(dbg); + } /* Finish */ tvheadend.rootTabPanel.add(cp); -- 2.47.3