Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Mark read-only collections as read-only
The UI layer will enforce that the user cannot edit or delete contacts in read-only collections, and thus we won't attempt to upsync changes to such collections (which would fail).
- Loading branch information
Chris Adams
committed
Sep 24, 2020
1 parent
6030db1
commit 9184b28
Showing
7 changed files
with
72 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
tests/replyparser/data/replyparser_addressbookinformation_two-with-privileges.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<d:multistatus xmlns:d="DAV:" xmlns:cs="http://calendarserver.org/ns/"> | ||
<d:response> | ||
<d:href>/addressbooks/johndoe/contacts/</d:href> | ||
<d:propstat> | ||
<d:prop> | ||
<d:displayname>My Address Book</d:displayname> | ||
<d:current-user-privilege-set> | ||
<d:privilege><d:read /></d:privilege> | ||
<d:privilege><d:write /></d:privilege> | ||
</d:current-user-privilege-set> | ||
<cs:getctag>3145</cs:getctag> | ||
<d:sync-token>http://sabredav.org/ns/sync-token/3145</d:sync-token> | ||
</d:prop> | ||
<d:status>HTTP/1.1 200 OK</d:status> | ||
</d:propstat> | ||
</d:response> | ||
<d:response> | ||
<d:href>/addressbooks/johndoe/readonly-contacts/</d:href> | ||
<d:propstat> | ||
<d:prop> | ||
<d:displayname>ReadOnly Address Book</d:displayname> | ||
<d:current-user-privilege-set> | ||
<d:privilege><d:read /></d:privilege> | ||
</d:current-user-privilege-set> | ||
<cs:getctag>3149</cs:getctag> | ||
<d:sync-token>http://sabredav.org/ns/sync-token/3149</d:sync-token> | ||
</d:prop> | ||
<d:status>HTTP/1.1 200 OK</d:status> | ||
</d:propstat> | ||
</d:response> | ||
</d:multistatus> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters