diff options
author | Thomas Citharel <tcit@tcit.fr> | 2016-08-15 17:53:58 +0200 |
---|---|---|
committer | Lukas Reschke <lukas@statuscode.ch> | 2016-09-26 11:55:41 +0200 |
commit | ad0eeaaf1c9adfdb7875ea2e18ad11470228e284 (patch) | |
tree | 849c136cf404e06fc0805b25ad99e0f8a2e02d13 /apps/dav | |
parent | 6378dbca7e1559def51b9f80174f559174aeb2e8 (diff) | |
download | nextcloud-server-ad0eeaaf1c9adfdb7875ea2e18ad11470228e284.tar.gz nextcloud-server-ad0eeaaf1c9adfdb7875ea2e18ad11470228e284.zip |
use AllowedSharingModes for can-be-published & can-be-shared
Diffstat (limited to 'apps/dav')
-rw-r--r-- | apps/dav/lib/CalDAV/Publishing/PublishPlugin.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/apps/dav/lib/CalDAV/Publishing/PublishPlugin.php b/apps/dav/lib/CalDAV/Publishing/PublishPlugin.php index 1b89578e3c9..79dc84b148c 100644 --- a/apps/dav/lib/CalDAV/Publishing/PublishPlugin.php +++ b/apps/dav/lib/CalDAV/Publishing/PublishPlugin.php @@ -9,6 +9,7 @@ use Sabre\DAV\ServerPlugin; use Sabre\DAV\Exception\NotFound; use Sabre\HTTP\RequestInterface; use Sabre\HTTP\ResponseInterface; +use Sabre\CalDAV\Xml\Property\AllowedSharingModes; use OCA\DAV\CalDAV\Publishing\Xml\Publisher; use OCA\DAV\CalDAV\Calendar; use OCP\IURLGenerator; @@ -109,8 +110,8 @@ class PublishPlugin extends ServerPlugin { return new Publisher($publishUrl, false); }); - $propFind->handle('{'.self::NS_CALENDARSERVER.'}can-be-published', function() use ($node) { - return !$node->getPublishStatus() && !$node->isSubscription(); + $propFind->handle('{'.self::NS_CALENDARSERVER.'}allowed-sharing-modes', function() use ($node) { + return new AllowedSharingModes(!$node->isSubscription(), !$node->isSubscription()); }); } } |