From 9d5aae4197d846f98ea08b8f5f1ad5ff08e05729 Mon Sep 17 00:00:00 2001 From: rolux Date: Wed, 17 Dec 2014 15:33:58 +0000 Subject: [PATCH] fix capability check --- static/js/entityDialog.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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...')