forked from 0x2620/pandora
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.documentsDialog = function() {
|
|||
// FIXME: user may not have the manage entites capability
|
||||
$switchButton = Ox.Button({
|
||||
disabled: !pandora.site.entities.length
|
||||
|| !pandora.site.capabilities.canManageEntities[pandora.user.level],
|
||||
|| !pandora.hasCapability('canManageEntities'),
|
||||
title: Ox._('Manage Entities...')
|
||||
})
|
||||
.bindEvent({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue