]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
Don't show debugging and mem info for basic users
authorGlenn-1990 <g_christiaensen@msn.com>
Sat, 8 Oct 2016 20:12:59 +0000 (22:12 +0200)
committerJaroslav Kysela <perex@perex.cz>
Thu, 20 Oct 2016 12:08:07 +0000 (14:08 +0200)
src/webui/static/app/tvheadend.js

index ba6406f5433f3699fa87ed85a7a6b58baa97500a..d31d5b9626336eadfb1ba7c8e43d6e1bdb9468cc 100644 (file)
@@ -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);