(js) Set ACLs of new Addressbook

Fixes #133
pull/186/head
Francis Lachapelle 2016-01-15 10:25:13 -05:00
parent 2ba3371ea2
commit 37a419a7ae
1 changed files with 1 additions and 0 deletions

View File

@ -16,6 +16,7 @@
// Create a new addressbook on the server
var newAddressBookData = AddressBook.$$resource.create('createFolder', this.name);
this.$unwrap(newAddressBookData);
this.acls = {'objectEditor': 1, 'objectCreator': 1, 'objectEraser': 1};
}
else if (this.id) {
this.$acl = new AddressBook.$$Acl('Contacts/' + this.id);