summaryrefslogtreecommitdiffstats
path: root/apps/dav/appinfo/app.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/dav/appinfo/app.php')
-rw-r--r--apps/dav/appinfo/app.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/apps/dav/appinfo/app.php b/apps/dav/appinfo/app.php
index e312b48d0b8..8a534a75970 100644
--- a/apps/dav/appinfo/app.php
+++ b/apps/dav/appinfo/app.php
@@ -55,3 +55,11 @@ $cm->register(function() use ($cm, $app) {
$app->setupContactsProvider($cm, $user->getUID());
}
});
+
+$calendarManager = \OC::$server->getCalendarManager();
+$calendarManager->register(function() use ($calendarManager, $app) {
+ $user = \OC::$server->getUserSession()->getUser();
+ if ($user !== null) {
+ $app->setupCalendarProvider($calendarManager, $user->getUID());
+ }
+});