aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--apps/dav/lib/Connector/Sabre/Principal.php7
1 files changed, 1 insertions, 6 deletions
diff --git a/apps/dav/lib/Connector/Sabre/Principal.php b/apps/dav/lib/Connector/Sabre/Principal.php
index 1ddbc1a6083..5dedb0a7d7b 100644
--- a/apps/dav/lib/Connector/Sabre/Principal.php
+++ b/apps/dav/lib/Connector/Sabre/Principal.php
@@ -178,10 +178,8 @@ class Principal implements BackendInterface {
return $this->userToPrincipal($user);
}
} elseif ($prefix === 'principals/circles') {
- try {
+ if ($this->userSession->getUser() !== null) {
return $this->circleToPrincipal($name);
- } catch (QueryException $e) {
- return null;
}
}
return null;
@@ -471,9 +469,6 @@ class Principal implements BackendInterface {
/**
* @param string $circleUniqueId
* @return array|null
- * @throws \OCP\AppFramework\QueryException
- * @suppress PhanUndeclaredClassMethod
- * @suppress PhanUndeclaredClassCatch
*/
protected function circleToPrincipal($circleUniqueId) {
if (!$this->appManager->isEnabledForUser('circles') || !class_exists('\OCA\Circles\Api\v1\Circles')) {