disable add button if user can not manage documents, fixes #2308
This commit is contained in:
parent
45c293ebec
commit
00cf921782
1 changed files with 6 additions and 3 deletions
|
@ -234,9 +234,12 @@ pandora.ui.documentsPanel = function(options) {
|
|||
|
||||
$itemMenu = Ox.MenuButton({
|
||||
items: isItemView ? [
|
||||
{id: 'add', title: Ox._(
|
||||
'Add Documents to {0}...', [pandora.site.itemName.singular]
|
||||
), keyboard: 'control n'},
|
||||
{
|
||||
id: 'add',
|
||||
disabled: !pandora.site.capabilities.canManageDocuments[pandora.user.level],
|
||||
title: Ox._('Add Documents to {0}...', [pandora.site.itemName.singular]),
|
||||
keyboard: 'control n'
|
||||
},
|
||||
{},
|
||||
{id: 'open', title: '', keyboard: 'return'},
|
||||
{id: 'edit', title: ''},
|
||||
|
|
Loading…
Reference in a new issue