diff options
author | Georg Ehrke <developer@georgehrke.com> | 2018-10-14 12:48:42 +0200 |
---|---|---|
committer | Georg Ehrke <developer@georgehrke.com> | 2018-10-16 20:27:33 +0200 |
commit | f5dc7b7f0748f7e5b2f3816d53b374e7d9857a2b (patch) | |
tree | c327aa1de7485e22892707a114b5f89a9e0f4b69 /apps/dav/lib/Connector/Sabre/Principal.php | |
parent | 1ce86722763ac2c3aa299de67955005024e3ee5c (diff) | |
download | nextcloud-server-f5dc7b7f0748f7e5b2f3816d53b374e7d9857a2b.tar.gz nextcloud-server-f5dc7b7f0748f7e5b2f3816d53b374e7d9857a2b.zip |
move disableFreeBusy check from User principal backend to Scheduling Outbox collection. This allows to keep local delivery of scheduling messages while prohibiting FreeBusy requests
Signed-off-by: Georg Ehrke <developer@georgehrke.com>
Diffstat (limited to 'apps/dav/lib/Connector/Sabre/Principal.php')
-rw-r--r-- | apps/dav/lib/Connector/Sabre/Principal.php | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/apps/dav/lib/Connector/Sabre/Principal.php b/apps/dav/lib/Connector/Sabre/Principal.php index feba4d04624..cbfa1bc83e0 100644 --- a/apps/dav/lib/Connector/Sabre/Principal.php +++ b/apps/dav/lib/Connector/Sabre/Principal.php @@ -212,10 +212,9 @@ class Principal implements BackendInterface { protected function searchUserPrincipals(array $searchProperties, $test = 'allof') { $results = []; - // If sharing is disabled (or FreeBusy was disabled on purpose), return the empty array + // If sharing is disabled, return the empty array $shareAPIEnabled = $this->shareManager->shareApiEnabled(); - $disableFreeBusy = $this->config->getAppValue('dav', 'disableFreeBusy', $shareAPIEnabled ? 'no' : 'yes'); - if ($disableFreeBusy === 'yes') { + if (!$shareAPIEnabled) { return []; } @@ -298,10 +297,9 @@ class Principal implements BackendInterface { * @return string */ function findByUri($uri, $principalPrefix) { - // If sharing is disabled (or FreeBusy was disabled on purpose), return the empty array + // If sharing is disabled, return the empty array $shareAPIEnabled = $this->shareManager->shareApiEnabled(); - $disableFreeBusy = $this->config->getAppValue('dav', 'disableFreeBusy', $shareAPIEnabled ? 'no' : 'yes'); - if ($disableFreeBusy === 'yes') { + if (!$shareAPIEnabled) { return null; } |