summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLukas Reschke <lukas@statuscode.ch>2012-08-10 22:01:10 +0200
committerLukas Reschke <lukas@statuscode.ch>2012-08-10 22:02:04 +0200
commit11895a86b0c68fa7eb7bc0cdaf6b12ad30b71b2a (patch)
treee9460dbd4f220476cd6c0cf74bfa8e8dd6fd0ad4
parent8ec45870a3f1d9dfb633a39b7b8a7c4911533d9e (diff)
downloadnextcloud-server-11895a86b0c68fa7eb7bc0cdaf6b12ad30b71b2a.tar.gz
nextcloud-server-11895a86b0c68fa7eb7bc0cdaf6b12ad30b71b2a.zip
Activate ACLs
-rw-r--r--apps/calendar/appinfo/remote.php3
-rw-r--r--apps/contacts/appinfo/remote.php4
2 files changed, 7 insertions, 0 deletions
diff --git a/apps/calendar/appinfo/remote.php b/apps/calendar/appinfo/remote.php
index e8f9e80c7a8..71f1f378ae4 100644
--- a/apps/calendar/appinfo/remote.php
+++ b/apps/calendar/appinfo/remote.php
@@ -30,6 +30,9 @@ $nodes = array(
$server = new Sabre_DAV_Server($nodes);
$server->setBaseUri($baseuri);
// Add plugins
+$aclPlugin = new Sabre_DAVACL_Plugin();
+$aclPlugin->hideNodesFromListings = true;
+$server->addPlugin($aclPlugin);
$server->addPlugin(new Sabre_DAV_Auth_Plugin($authBackend,'ownCloud'));
$server->addPlugin(new Sabre_CalDAV_Plugin());
$server->addPlugin(new Sabre_DAVACL_Plugin());
diff --git a/apps/contacts/appinfo/remote.php b/apps/contacts/appinfo/remote.php
index fd5604aec6f..a095f0f37fb 100644
--- a/apps/contacts/appinfo/remote.php
+++ b/apps/contacts/appinfo/remote.php
@@ -42,9 +42,13 @@ $nodes = array(
);
// Fire up server
+
$server = new Sabre_DAV_Server($nodes);
$server->setBaseUri($baseuri);
// Add plugins
+$aclPlugin = new Sabre_DAVACL_Plugin();
+$aclPlugin->hideNodesFromListings = true;
+$server->addPlugin($aclPlugin);
$server->addPlugin(new Sabre_DAV_Auth_Plugin($authBackend, 'ownCloud'));
$server->addPlugin(new Sabre_CardDAV_Plugin());
$server->addPlugin(new Sabre_DAVACL_Plugin());