aboutsummaryrefslogtreecommitdiffstats
path: root/apps/dav/lib/CalDAV/Publishing/PublishPlugin.php
diff options
context:
space:
mode:
authorGeorg Ehrke <developer@georgehrke.com>2019-09-17 11:05:55 +0200
committerBackportbot <backportbot-noreply@rullzer.com>2019-09-17 16:04:19 +0000
commit45dea9245ee82f6843f7cc2f28dd95f6a844e29e (patch)
tree4ed9f6c656a8a05dbb4591f6071515d35a44fe13 /apps/dav/lib/CalDAV/Publishing/PublishPlugin.php
parentcea2b78aa39f0ebd9955e1d5efddb143fd536d14 (diff)
downloadnextcloud-server-45dea9245ee82f6843f7cc2f28dd95f6a844e29e.tar.gz
nextcloud-server-45dea9245ee82f6843f7cc2f28dd95f6a844e29e.zip
properly mark birthday calendars as not shareable for now
Signed-off-by: Georg Ehrke <developer@georgehrke.com>
Diffstat (limited to 'apps/dav/lib/CalDAV/Publishing/PublishPlugin.php')
-rw-r--r--apps/dav/lib/CalDAV/Publishing/PublishPlugin.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/apps/dav/lib/CalDAV/Publishing/PublishPlugin.php b/apps/dav/lib/CalDAV/Publishing/PublishPlugin.php
index 53059818039..fc276fb25ca 100644
--- a/apps/dav/lib/CalDAV/Publishing/PublishPlugin.php
+++ b/apps/dav/lib/CalDAV/Publishing/PublishPlugin.php
@@ -126,7 +126,10 @@ class PublishPlugin extends ServerPlugin {
});
$propFind->handle('{'.self::NS_CALENDARSERVER.'}allowed-sharing-modes', function() use ($node) {
- return new AllowedSharingModes(!$node->isSubscription(), !$node->isSubscription());
+ $canShare = (!$node->isSubscription() && $node->canWrite());
+ $canPublish = (!$node->isSubscription() && $node->canWrite());
+
+ return new AllowedSharingModes($canShare, $canPublish);
});
}
}