disable delete button if user cannot remove item

This commit is contained in:
rolux 2013-02-25 15:50:54 +05:30
parent 1346327c53
commit 029a92983d

View file

@ -27,6 +27,7 @@ pandora.ui.filesView = function(options, self) {
});
self.$deleteButton = Ox.Button({
disabled: !pandora.site.capabilities.canRemoveItems[pandora.user.ui.level],
title: 'Delete ' + pandora.site.itemName.singular + '...',
width: 128
})