Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Don't show debugging and mem info for basic users
  • Loading branch information
Glenn-1990 authored and perexg committed Oct 20, 2016
1 parent 1920859 commit ee84daf
Showing 1 changed file with 13 additions and 11 deletions.
24 changes: 13 additions & 11 deletions src/webui/static/app/tvheadend.js
Expand Up @@ -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);
Expand Down

0 comments on commit ee84daf

Please sign in to comment.