(js) Check addressbook ACL prior to delete cards

This commit is contained in:
Francis Lachapelle committed 2018-08-31 15:56:26 -04:00
1 parent 19c02914ba
commit 3b9835095f
3 files changed
+3 -2

No files matched your search

@@ -59,7 +59,7 @@
key: hotkey,
description: l('Delete'),
callback: function($event) {
if (vm.currentFolder.$selectedCount() === 0)
if (vm.currentFolder.acls.objectEraser && vm.currentFolder.$selectedCount() === 0)
confirmDelete();
$event.preventDefault();
}