disable delete button if user cannot remove item
This commit is contained in:
parent
1346327c53
commit
029a92983d
1 changed files with 1 additions and 0 deletions
|
@ -27,6 +27,7 @@ pandora.ui.filesView = function(options, self) {
|
||||||
});
|
});
|
||||||
|
|
||||||
self.$deleteButton = Ox.Button({
|
self.$deleteButton = Ox.Button({
|
||||||
|
disabled: !pandora.site.capabilities.canRemoveItems[pandora.user.ui.level],
|
||||||
title: 'Delete ' + pandora.site.itemName.singular + '...',
|
title: 'Delete ' + pandora.site.itemName.singular + '...',
|
||||||
width: 128
|
width: 128
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue