summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorThomas Citharel <tcit@tcit.fr>2016-08-12 10:25:26 +0200
committerLukas Reschke <lukas@statuscode.ch>2016-09-26 11:55:40 +0200
commitf16ea48e96885e8bdff8fc66f6923232b32a407c (patch)
treefd7214ba4f87921860bb13590074fb3744165a46 /apps
parenta4fe596a21697e6da4e6c87a8fa06e366050fb5b (diff)
downloadnextcloud-server-f16ea48e96885e8bdff8fc66f6923232b32a407c.tar.gz
nextcloud-server-f16ea48e96885e8bdff8fc66f6923232b32a407c.zip
add can-be-published property
Diffstat (limited to 'apps')
-rw-r--r--apps/dav/lib/CalDAV/Publishing/PublishPlugin.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/dav/lib/CalDAV/Publishing/PublishPlugin.php b/apps/dav/lib/CalDAV/Publishing/PublishPlugin.php
index 56bdc6b6a90..124901fd681 100644
--- a/apps/dav/lib/CalDAV/Publishing/PublishPlugin.php
+++ b/apps/dav/lib/CalDAV/Publishing/PublishPlugin.php
@@ -108,6 +108,10 @@ class PublishPlugin extends ServerPlugin {
// The pre-publish-url is always returned
return new Publisher($publishUrl, false);
});
+
+ $propFind->handle('{'.self::NS_CALENDARSERVER.'}can-be-published', function() use ($node) {
+ return !$node->getPublishStatus();
+ });
}
}