File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -45,10 +45,10 @@ export function mapDavCollectionToAddressbook(addressbook) {
4545 enabled : addressbook . enabled !== false ,
4646 owner : addressbook . owner ,
4747 readOnly : addressbook . readOnly === true ,
48- writeProps : addressbook . currentUserPrivilegeSet . includes ( '{DAV:}write-properties' ) === true ,
49- canCreateCard : addressbook . currentUserPrivilegeSet . includes ( '{DAV:}bind' ) || addressbook . currentUserPrivilegeSet . includes ( '{DAV:}write' ) || addressbook . currentUserPrivilegeSet . includes ( '{DAV:}all' ) === true ,
50- canModifyCard : addressbook . currentUserPrivilegeSet . includes ( '{DAV:}write-content' ) || addressbook . currentUserPrivilegeSet . includes ( '{DAV:}write' ) || addressbook . currentUserPrivilegeSet . includes ( '{DAV:}all' ) === true ,
51- canDeleteCard : addressbook . currentUserPrivilegeSet . includes ( '{DAV:}unbind' ) || addressbook . currentUserPrivilegeSet . includes ( '{DAV:}write' ) || addressbook . currentUserPrivilegeSet . includes ( '{DAV:}all' ) === true ,
48+ writeProps : addressbook . currentUserPrivilegeSet . includes ( '{DAV:}write-properties' ) ,
49+ canCreateCard : addressbook . currentUserPrivilegeSet . includes ( '{DAV:}bind' ) || addressbook . currentUserPrivilegeSet . includes ( '{DAV:}write' ) || addressbook . currentUserPrivilegeSet . includes ( '{DAV:}all' ) ,
50+ canModifyCard : addressbook . currentUserPrivilegeSet . includes ( '{DAV:}write-content' ) || addressbook . currentUserPrivilegeSet . includes ( '{DAV:}write' ) || addressbook . currentUserPrivilegeSet . includes ( '{DAV:}all' ) ,
51+ canDeleteCard : addressbook . currentUserPrivilegeSet . includes ( '{DAV:}unbind' ) || addressbook . currentUserPrivilegeSet . includes ( '{DAV:}write' ) || addressbook . currentUserPrivilegeSet . includes ( '{DAV:}all' ) ,
5252 url : addressbook . url ,
5353 dav : addressbook ,
5454 shares : addressbook . shares
You can’t perform that action at this time.
0 commit comments