diff --git a/static/js/entityDialog.js b/static/js/entityDialog.js index 6806ecff0..66081bcc9 100644 --- a/static/js/entityDialog.js +++ b/static/js/entityDialog.js @@ -10,7 +10,7 @@ pandora.ui.entityDialog = function() { .css({overflowY: 'auto'}), that = Ox.Dialog({ - buttons: (ui.capabilities.canManageEntities ? [ + buttons: (pandora.site.capabilities.canManageEntities[pandora.user.level] ? [ Ox.Button({ id: 'edit', title: Ox._('Edit Entity...')