add can-be-published property

pull/1197/head
Thomas Citharel 10 years ago committed by Lukas Reschke
parent a4fe596a21
commit f16ea48e96
No known key found for this signature in database
GPG Key ID: B9F6980CF6E759B1
  1. 4
      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();
});
}
}

Loading…
Cancel
Save