use pandora.hasCapability

This commit is contained in:
j 2017-11-04 11:53:27 +02:00
commit db2d37e2bb
32 changed files with 49 additions and 53 deletions

View file

@ -38,7 +38,7 @@ pandora.ui.errorDialog = function(data) {
setTimeout(function() {
if ($('.OxErrorDialog').length == 0 && !pandora.isUnloading) {
showLogsButton = error == 'error'
&& pandora.site.capabilities.canSeeDebugMenu[pandora.user.level]
&& pandora.hasCapability('canSeeDebugMenu')
that = pandora.ui.iconDialog({
buttons: (showLogsButton ? [
Ox.Button({