mirror of
https://github.com/nextcloud/server.git
synced 2026-05-20 09:12:51 -04:00
add can-be-published property
This commit is contained in:
parent
a4fe596a21
commit
f16ea48e96
1 changed files with 4 additions and 0 deletions
|
|
@ -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…
Reference in a new issue