add can-be-published property

This commit is contained in:
Thomas Citharel 2016-08-12 10:25:26 +02:00 committed by Lukas Reschke
parent a4fe596a21
commit f16ea48e96
No known key found for this signature in database
GPG Key ID: B9F6980CF6E759B1
1 changed files with 4 additions and 0 deletions

View File

@ -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();
});
}
}