diff options
author | Thomas Citharel <tcit@tcit.fr> | 2016-08-12 10:25:26 +0200 |
---|---|---|
committer | Lukas Reschke <lukas@statuscode.ch> | 2016-09-26 11:55:40 +0200 |
commit | f16ea48e96885e8bdff8fc66f6923232b32a407c (patch) | |
tree | fd7214ba4f87921860bb13590074fb3744165a46 /apps | |
parent | a4fe596a21697e6da4e6c87a8fa06e366050fb5b (diff) | |
download | nextcloud-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.php | 4 |
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(); + }); } } |