summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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();
+ });
}
}