[Pkg-owncloud-commits] [php-sabredav] 152/275: Users can delete items from their inbox.

David Prévot taffit at moszumanska.debian.org
Thu Sep 25 14:56:02 UTC 2014


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository php-sabredav.

commit 02f85ed2d42f1b8bc2d60d91701ce9420a9baa1f
Author: Evert Pot <me at evertpot.com>
Date:   Mon Aug 11 23:22:38 2014 -0400

    Users can delete items from their inbox.
---
 lib/CalDAV/Schedule/Inbox.php             | 10 ++++++++++
 tests/Sabre/CalDAV/Schedule/InboxTest.php | 10 ++++++++++
 2 files changed, 20 insertions(+)

diff --git a/lib/CalDAV/Schedule/Inbox.php b/lib/CalDAV/Schedule/Inbox.php
index 14fbaa8..d604f64 100644
--- a/lib/CalDAV/Schedule/Inbox.php
+++ b/lib/CalDAV/Schedule/Inbox.php
@@ -157,6 +157,11 @@ class Inbox extends DAV\Collection implements IInbox {
                 'protected' => true,
             ],
             [
+                'privilege' => '{DAV:}unbind',
+                'principal' => $this->getOwner(),
+                'protected' => true,
+            ],
+            [
                 'privilege' => '{DAV:}read',
                 'principal' => $this->getOwner() . '/calendar-proxy-read',
                 'protected' => true,
@@ -167,6 +172,11 @@ class Inbox extends DAV\Collection implements IInbox {
                 'protected' => true,
             ],
             [
+                'privilege' => '{DAV:}unbind',
+                'principal' => $this->getOwner() . '/calendar-proxy-write',
+                'protected' => true,
+            ],
+            [
                 'privilege' => '{' . CalDAV\Plugin::NS_CALDAV . '}schedule-deliver-invite',
                 'principal' => '{DAV:}authenticated',
                 'protected' => true,
diff --git a/tests/Sabre/CalDAV/Schedule/InboxTest.php b/tests/Sabre/CalDAV/Schedule/InboxTest.php
index 6007a72..73d8feb 100644
--- a/tests/Sabre/CalDAV/Schedule/InboxTest.php
+++ b/tests/Sabre/CalDAV/Schedule/InboxTest.php
@@ -29,6 +29,11 @@ class InboxTest extends \PHPUnit_Framework_TestCase {
                 'protected' => true,
             ),
             array(
+                'privilege' => '{DAV:}unbind',
+                'principal' => 'principals/user1',
+                'protected' => true,
+            ),
+            array(
                 'privilege' => '{DAV:}read',
                 'principal' => 'principals/user1/calendar-proxy-read',
                 'protected' => true,
@@ -39,6 +44,11 @@ class InboxTest extends \PHPUnit_Framework_TestCase {
                 'protected' => true,
             ),
             array(
+                'privilege' => '{DAV:}unbind',
+                'principal' => 'principals/user1/calendar-proxy-write',
+                'protected' => true,
+            ),
+            array(
                 'privilege' => '{urn:ietf:params:xml:ns:caldav}schedule-deliver-invite',
                 'principal' => '{DAV:}authenticated',
                 'protected' => true,

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/php-sabredav.git



More information about the Pkg-owncloud-commits mailing list