use pandora.hasCapability
This commit is contained in:
parent
4a69de4a05
commit
db2d37e2bb
32 changed files with 49 additions and 53 deletions
|
|
@ -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({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue