Skip to content
Advertisement

Determine access rights for CalDAV calendars

I’m creating a PHP application that will write events to a CalDAV calendar (Kolab groupware). For this I ask for the calendar-home-set of the respective user. After that, I only want to use calendars that I have write permissions for. It may well be that I received shared calendars that I’m only allowed to read. So how can I determine the access rights to a calendar before I register an event and receive an error message?

Thanks in advance.

Advertisement

Answer

To get CalDAV(/*DAV) resource/collection privileges you can query the {DAV:}current-user-privilege-set property while retrieving the calendar list.

This is part of RFC 3744 (WebDAV ACL). Sample from the RFC:

JavaScript
JavaScript
User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement