use pandora.hasCapability
This commit is contained in:
parent
4a69de4a05
commit
db2d37e2bb
32 changed files with 49 additions and 53 deletions
|
|
@ -10,7 +10,7 @@ pandora.ui.entityDialog = function() {
|
|||
.css({overflowY: 'auto'}),
|
||||
|
||||
that = Ox.Dialog({
|
||||
buttons: (pandora.site.capabilities.canManageEntities[pandora.user.level] ? [
|
||||
buttons: (pandora.hasCapability('canManageEntities') ? [
|
||||
Ox.Button({
|
||||
id: 'edit',
|
||||
title: Ox._('Edit Entity...')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue