Browse Source

A valid user session is required for circles.

The circles app depends on a valid userId. A public shared calender might be viewed by guests without a user session. For such requests the principal is null.

Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
tags/v21.0.0beta1
Daniel Kesselberg 3 years ago
parent
commit
35098a9973
No account linked to committer's email address
1 changed files with 3 additions and 1 deletions
  1. 3
    1
      apps/dav/lib/Connector/Sabre/Principal.php

+ 3
- 1
apps/dav/lib/Connector/Sabre/Principal.php View File

@@ -178,7 +178,9 @@ class Principal implements BackendInterface {
return $this->userToPrincipal($user);
}
} elseif ($prefix === 'principals/circles') {
return $this->circleToPrincipal($name);
if ($this->userSession->getUser() !== null) {
return $this->circleToPrincipal($name);
}
}
return null;
}

Loading…
Cancel
Save