(js) Check addressbook ACL prior to delete cards

This commit is contained in:
Francis Lachapelle
2018-08-31 15:56:26 -04:00
parent 19c02914ba
commit 3b9835095f
3 changed files with 3 additions and 2 deletions
@@ -228,7 +228,7 @@
this.confirmDeleteSelectedCards = function($event) {
var selectedCards = this.selectedFolder.$selectedCards();
if (_.size(selectedCards) > 0)
if (this.selectedFolder.acls.objectEraser && _.size(selectedCards) > 0)
Dialog.confirm(l('Warning'),
l('Are you sure you want to delete the selected contacts?'),
{ ok: l('Delete') })